Class UdiGetterExtensions
Provides extension methods that return udis for Umbraco entities.
Inheritance
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class UdiGetterExtensions
Methods
View SourceGetUdi(IEntity)
Gets the entity identifier of the entity.
Declaration
public static Udi GetUdi(this IEntity entity)
Parameters
Type | Name | Description |
---|---|---|
IEntity | entity | The entity. |
Returns
Type | Description |
---|---|
Udi | The entity identifier of the entity. |
GetUdi(EntityContainer)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this EntityContainer entity)
Parameters
Type | Name | Description |
---|---|---|
EntityContainer | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IContent)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IContent entity)
Parameters
Type | Name | Description |
---|---|---|
IContent | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IContentBase)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IContentBase entity)
Parameters
Type | Name | Description |
---|---|---|
IContentBase | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IContentType)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IContentType entity)
Parameters
Type | Name | Description |
---|---|---|
IContentType | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IContentTypeComposition)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IContentTypeComposition entity)
Parameters
Type | Name | Description |
---|---|---|
IContentTypeComposition | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IDataType)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IDataType entity)
Parameters
Type | Name | Description |
---|---|---|
IDataType | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IDictionaryItem)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IDictionaryItem entity)
Parameters
Type | Name | Description |
---|---|---|
IDictionaryItem | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(ILanguage)
Gets the entity identifier of the entity.
Declaration
public static StringUdi GetUdi(this ILanguage entity)
Parameters
Type | Name | Description |
---|---|---|
ILanguage | entity | The entity. |
Returns
Type | Description |
---|---|
StringUdi | The entity identifier of the entity. |
GetUdi(IMacro)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IMacro entity)
Parameters
Type | Name | Description |
---|---|---|
IMacro | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IMedia)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IMedia entity)
Parameters
Type | Name | Description |
---|---|---|
IMedia | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IMediaType)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IMediaType entity)
Parameters
Type | Name | Description |
---|---|---|
IMediaType | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IMember)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IMember entity)
Parameters
Type | Name | Description |
---|---|---|
IMember | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IMemberGroup)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IMemberGroup entity)
Parameters
Type | Name | Description |
---|---|---|
IMemberGroup | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IMemberType)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IMemberType entity)
Parameters
Type | Name | Description |
---|---|---|
IMemberType | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(IPartialView)
Gets the entity identifier of the entity.
Declaration
public static StringUdi GetUdi(this IPartialView entity)
Parameters
Type | Name | Description |
---|---|---|
IPartialView | entity | The entity. |
Returns
Type | Description |
---|---|
StringUdi | The entity identifier of the entity. |
GetUdi(IRelationType)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this IRelationType entity)
Parameters
Type | Name | Description |
---|---|---|
IRelationType | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(ITemplate)
Gets the entity identifier of the entity.
Declaration
public static GuidUdi GetUdi(this ITemplate entity)
Parameters
Type | Name | Description |
---|---|---|
ITemplate | entity | The entity. |
Returns
Type | Description |
---|---|
GuidUdi | The entity identifier of the entity. |
GetUdi(Script)
Gets the entity identifier of the entity.
Declaration
public static StringUdi GetUdi(this Script entity)
Parameters
Type | Name | Description |
---|---|---|
Script | entity | The entity. |
Returns
Type | Description |
---|---|
StringUdi | The entity identifier of the entity. |
GetUdi(Stylesheet)
Gets the entity identifier of the entity.
Declaration
public static StringUdi GetUdi(this Stylesheet entity)
Parameters
Type | Name | Description |
---|---|---|
Stylesheet | entity | The entity. |
Returns
Type | Description |
---|---|
StringUdi | The entity identifier of the entity. |