Class FriendlyNameAttribute
Attribute to add a Friendly Name string with an UmbracoObjectType enum value
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.CodeAnnotations
Assembly: Umbraco.Core.dll
Syntax
public class FriendlyNameAttribute : Attribute
Constructors
View SourceFriendlyNameAttribute(String)
Initializes a new instance of the FriendlyNameAttribute class Sets the friendly name value
Declaration
public FriendlyNameAttribute(string friendlyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | friendlyName | attribute value |
Methods
View SourceToString()
Gets the friendly name
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string of friendly name |