View Source
Struct UmbracoEntityReference
Used to track a reference to another entity in a property value.
Assembly: Umbraco.Core.dll
Syntax
public struct UmbracoEntityReference
Constructors
View Source
UmbracoEntityReference(Udi)
Declaration
public UmbracoEntityReference(Udi udi)
Parameters
| Type |
Name |
Description |
| Udi |
udi |
The UDI.
|
View Source
UmbracoEntityReference(Udi, string)
Declaration
public UmbracoEntityReference(Udi udi, string relationTypeAlias)
Parameters
| Type |
Name |
Description |
| Udi |
udi |
The UDI.
|
| string |
relationTypeAlias |
The relation type alias.
|
Properties
View Source
RelationTypeAlias
Gets the relation type alias.
Declaration
public readonly string RelationTypeAlias { get; }
Property Value
| Type |
Description |
| string |
The relation type alias.
|
View Source
Udi
Declaration
public readonly Udi Udi { get; }
Property Value
| Type |
Description |
| Udi |
The UDI.
|
Methods
View Source
Empty()
Declaration
public static UmbracoEntityReference Empty()
Returns
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
View Source
Equals(UmbracoEntityReference)
Declaration
public bool Equals(UmbracoEntityReference other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
View Source
IsEmpty(UmbracoEntityReference)
Determines whether the specified reference is empty.
Declaration
public static bool IsEmpty(UmbracoEntityReference reference)
Parameters
Returns
| Type |
Description |
| bool |
true if the specified reference is empty; otherwise, false.
|
Operators
View Source
operator ==(UmbracoEntityReference, UmbracoEntityReference)
Declaration
public static bool operator ==(UmbracoEntityReference left, UmbracoEntityReference right)
Parameters
Returns
View Source
operator !=(UmbracoEntityReference, UmbracoEntityReference)
Declaration
public static bool operator !=(UmbracoEntityReference left, UmbracoEntityReference right)
Parameters
Returns