Class ContentID
ContentID class implements IContent except IContentData parts.
Inheritance
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentID : Object, 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. |
ContentLink
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 |
|
IsModified
Gets a value indicating whether this instance has been modified after loading.
Declaration
public bool IsModified { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The name. |
ParentLink
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 |