Try our conversational search powered by Generative AI!

Class ContentID

ContentID class implements IContent except IContentData parts.

Inheritance
System.Object
ContentID
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 7.19.2
Syntax
public class ContentID : IReadOnly<ContentID>, IReadOnly, IModifiedTrackable

Constructors

ContentID()

Declaration
public ContentID()

Properties

ContentGuid

Gets or sets the content GUID.

Declaration
public Guid ContentGuid { get; set; }
Property Value
Type Description
System.Guid

The content GUID.

Gets or sets the content link. It used to hold references to content in the EPiServer system.

Declaration
public ContentReference ContentLink { get; set; }
Property Value
Type Description
ContentReference

The content link.

ContentTypeID

Gets or sets the content type ID that this ContentData is an instance of.

Declaration
public int ContentTypeID { get; set; }
Property Value
Type Description
System.Int32

The content type ID.

IsDeleted

Gets a value indicating whether this instance is deleted.

Declaration
public bool IsDeleted { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is deleted; otherwise, false.

IsModified

Gets a value indicating whether this instance has been modified after loading.

Declaration
public bool IsModified { get; }
Property Value
Type Description
System.Boolean

true if this instance has been modified; otherwise, false.

IsReadOnly

Gets a value indicating whether this instance is read only.

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean

true if this instance is read only; otherwise, false.

Name

Gets or sets the name.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name.

Gets or sets the parent link. It used to hold references to the parent content in the EPiServer system.

Declaration
public ContentReference ParentLink { get; set; }
Property Value
Type Description
ContentReference

The parent link.

Methods

CreateWritableClone()

Creates the writable clone.

Declaration
public ContentID CreateWritableClone()
Returns
Type Description
ContentID

MakeReadOnly()

Makes the read only.

Declaration
public void MakeReadOnly()

ResetModified()

Resets the modified flag on all the data contained on the instance.

Declaration
public void ResetModified()

ThrowIfReadOnly()

Utility method that, when called, throws a System.NotSupportedException indicating that the ContentID has been set as read-only.

Declaration
protected void ThrowIfReadOnly()
Remarks

This method is used internally by other ContentID methods to standardize the exception thrown when trying to modify a ContentID set as read-only.

Explicit Interface Implementations

IReadOnly.CreateWritableClone()

Creates the writable clone.

Declaration
object IReadOnly.CreateWritableClone()
Returns
Type Description
System.Object

Implements

Extension Methods