View Source
Class ObjectTypes
Provides utilities and extension methods to handle object types.
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public static class ObjectTypes
Methods
View Source
GetClrType(Guid)
Gets the CLR type corresponding to an object type Guid.
Declaration
public static Type? GetClrType(Guid objectType)
Parameters
Type |
Name |
Description |
Guid |
objectType |
|
Returns
Type |
Description |
System.Nullable<Type> |
|
View Source
GetClrType(UmbracoObjectTypes)
Gets the CLR type corresponding to this Umbraco object type.
Declaration
public static Type? GetClrType(this UmbracoObjectTypes objectType)
Parameters
Returns
Type |
Description |
System.Nullable<Type> |
|
View Source
GetFriendlyName(UmbracoObjectTypes)
Gets the friendly name corresponding to this Umbraco object type.
Declaration
public static string GetFriendlyName(this UmbracoObjectTypes objectType)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
GetGuid(UmbracoObjectTypes)
Gets the object type Guid corresponding to this Umbraco object type.
Declaration
public static Guid GetGuid(this UmbracoObjectTypes objectType)
Parameters
Returns
View Source
GetName(UmbracoObjectTypes)
Gets the name corresponding to this Umbraco object type.
Declaration
public static string GetName(this UmbracoObjectTypes objectType)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
GetUdiType(Guid)
Gets the Udi type corresponding to an object type Guid.
Declaration
public static string GetUdiType(Guid objectType)
Parameters
Type |
Name |
Description |
Guid |
objectType |
|
Returns
Type |
Description |
System.String |
|
View Source
GetUdiType(UmbracoObjectTypes)
Gets the Udi type corresponding to this Umbraco object type.
Declaration
public static string GetUdiType(this UmbracoObjectTypes objectType)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
GetUmbracoObjectType(Guid)
Gets the Umbraco object type corresponding to an object type Guid.
Declaration
public static UmbracoObjectTypes GetUmbracoObjectType(Guid objectType)
Parameters
Type |
Name |
Description |
Guid |
objectType |
|
Returns
View Source
GetUmbracoObjectType(String)
Gets the Umbraco object type corresponding to a name.
Declaration
public static UmbracoObjectTypes GetUmbracoObjectType(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns