Class UmbracoObjectTypesExtensions
Extension methods for the UmbracoObjectTypes enum
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public static class UmbracoObjectTypesExtensions
Methods
GetFriendlyName(UmbracoObjectTypes)
Extension method for the UmbracoObejctTypes enum to return the enum friendly name
Declaration
public static string GetFriendlyName(this UmbracoObjectTypes umbracoObjectType)
Parameters
Type | Name | Description |
---|---|---|
UmbracoObjectTypes | umbracoObjectType | UmbracoObjectTypes value |
Returns
Type | Description |
---|---|
System.String | a string of the FriendlyName |
GetGuid(UmbracoObjectTypes)
Extension method for the UmbracoObjectTypes enum to return the enum GUID
Declaration
public static Guid GetGuid(this UmbracoObjectTypes umbracoObjectType)
Parameters
Type | Name | Description |
---|---|---|
UmbracoObjectTypes | umbracoObjectType | UmbracoObjectTypes Enum value |
Returns
Type | Description |
---|---|
System.Guid | a GUID value of the UmbracoObjectTypes |
GetName(UmbracoObjectTypes)
Extension method for the UmbracoObjectTypes enum to return the enum name
Declaration
public static string GetName(this UmbracoObjectTypes umbracoObjectType)
Parameters
Type | Name | Description |
---|---|---|
UmbracoObjectTypes | umbracoObjectType | UmbracoObjectTypes value |
Returns
Type | Description |
---|---|
System.String | The enum name of the UmbracoObjectTypes value |
GetUdiType(Guid)
Declaration
public static string GetUdiType(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | guid |
Returns
Type | Description |
---|---|
System.String |
GetUdiType(UmbracoObjectTypes)
Declaration
public static string GetUdiType(this UmbracoObjectTypes umbracoObjectType)
Parameters
Type | Name | Description |
---|---|---|
UmbracoObjectTypes | umbracoObjectType |
Returns
Type | Description |
---|---|
System.String |
GetUmbracoObjectType(Guid)
Get an instance of an UmbracoObjectTypes enum value from it's GUID
Declaration
public static UmbracoObjectTypes GetUmbracoObjectType(Guid guid)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | guid | Enum value GUID |
Returns
Type | Description |
---|---|
UmbracoObjectTypes | an UmbracoObjectTypes Enum value |
GetUmbracoObjectType(String)
Get an UmbracoObjectTypes value from it's name
Declaration
public static UmbracoObjectTypes GetUmbracoObjectType(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Enum value name |
Returns
Type | Description |
---|---|
UmbracoObjectTypes | an UmbracoObjectTypes Enum value |