Class SearchResult
The model that is returned from from an ISearchProvider.
Inheritance
Inherited Members
Namespace: EPiServer.Shell.Search
Assembly: EPiServer.Shell.dll
Version: 7.19.2Syntax
public class SearchResult
Constructors
SearchResult(String, String)
Initializes a new instance of the SearchResult class.
Declaration
public SearchResult(string url, string title)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL to open when this result is selected. |
System.String | title | The title of this search result. |
SearchResult(String, String, String)
Initializes a new instance of the SearchResult class.
Declaration
public SearchResult(string url, string title, string previewText)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL to open when this result is selected. |
System.String | title | The title of this search result. |
System.String | previewText | A preview text for this search result. |
Properties
IconCssClass
A css class used when rendering this search result.
Declaration
public string IconCssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Language
The language the this search result is in.
Declaration
public string Language { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Metadata
Custom Meta Data not rendered
Declaration
public IDictionary<string, string> Metadata { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |
PreviewText
A preview text for this search result.
Declaration
public string PreviewText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Title
The title of this search result.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ToolTipElements
A list of tooltip elements
Declaration
public IList<ToolTipElement> ToolTipElements { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<ToolTipElement> |
Url
The URL to this search result.
Declaration
public string Url { get; set; }
Property Value
Type | Description |
---|---|
System.String |