Table of Contents

Class ContentItemReference

Namespace
CMS.ContentEngine
Assembly
CMS.ContentEngine.dll

Represents content item reference data.

public sealed class ContentItemReference
Inheritance
object
ContentItemReference
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

other ContentItemReference

The ContentItemReference object to compare with current object.

Returns

bool

true if the specified object is equal to the current object, false otherwise.

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object, false otherwise.

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.