Class SearchableTreeAttribute
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Trees
Assembly: Umbraco.Core.dll
Syntax
public sealed class SearchableTreeAttribute : 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. |
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 |