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