Class SearchableTreeAttribute
Inheritance
System.Object
System.Attribute
Namespace: Umbraco.Web.Search
Assembly: Umbraco.Web.dll
Syntax
[AttributeUsage(AttributeTargets.Class)]
public sealed class SearchableTreeAttribute : Attribute, _Attribute
Constructors
View SourceSearchableTreeAttribute(String)
This constructor will assume that the method name equals format(searchResult, appAlias, treeAlias)
.
Declaration
public SearchableTreeAttribute(string serviceName)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceName | Name of the service. |
SearchableTreeAttribute(String, String)
This constructor defines both the Angular service and method name to use.
Declaration
public SearchableTreeAttribute(string serviceName, string methodName)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceName | Name of the service. |
System.String | methodName | Name of the method. |
SearchableTreeAttribute(String, String, Int32)
This constructor defines both the Angular service and method name to use and explicitly defines a sort order for the results
Declaration
public SearchableTreeAttribute(string serviceName, string methodName, int sortOrder)
Parameters
Type | Name | Description |
---|---|---|
System.String | serviceName | Name of the service. |
System.String | methodName | Name of the method. |
System.Int32 | sortOrder | The sort order. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | serviceName or methodName |
System.ArgumentException | Value can't be empty or consist only of white-space characters. - serviceName |
Fields
View SourceDefaultSortOrder
Declaration
public const int DefaultSortOrder = 1000
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
View SourceMethodName
Declaration
public string MethodName { get; }
Property Value
Type | Description |
---|---|
System.String |
ServiceName
Declaration
public string ServiceName { get; }
Property Value
Type | Description |
---|---|
System.String |
SortOrder
Declaration
public int SortOrder { get; }
Property Value
Type | Description |
---|---|
System.Int32 |