Class ContentItemReference
- Namespace
- CMS.ContentEngine
- Assembly
- CMS.ContentEngine.dll
Represents content item reference data.
public sealed class ContentItemReference
- Inheritance
-
objectContentItemReference
- Extension Methods
Constructors
ContentItemReference()
public ContentItemReference()
Properties
Identifier
Content item identifier.
public Guid Identifier { get; init; }
Property Value
- Guid
Methods
Equals(ContentItemReference)
Determines whether the specified ContentItemReference is equal to the current object.
Returns true if specified other object has the same Identifier value as the current object, false otherwise.
public bool Equals(ContentItemReference other)
Parameters
otherContentItemReferenceThe ContentItemReference object to compare with current object.
Returns
- bool
trueif the specified object is equal to the current object,falseotherwise.
Equals(object)
Determines whether the specified object is equal to the current object.
Returns true if the specified object is a ContentItemReference and has the same Identifier value as the current object, false otherwise.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
trueif the specified object is equal to the current object,falseotherwise.
GetHashCode()
Returns the hash code for the current object. The hash code is the same as the hash code of the Identifier value.
public override int GetHashCode()
Returns
- int
The hash code for the current object.