Class ContentBase
Class that can be used as base class for IContent implementations. See also Standard
Implements
Inherited Members
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public abstract class ContentBase : BasicContent, IInitializableContent, IContent, IContentData, IChangeTrackable, IExportable, IVersionable, IReadOnly, IModifiedTrackable, IContentSecurable, ISecurable, ICategorizable
Remarks
IRoutable should be implemented to support direct routing to instances.
Constructors
ContentBase()
Declaration
protected ContentBase()
Properties
Category
Gets a Category
Declaration
public CategoryList Category { get; set; }
Property Value
Type | Description |
---|---|
Category |
IsModified
Gets a value indicating whether this instance has been modified after loading.
Declaration
protected override bool IsModified { get; }
Property Value
Type | Description |
---|---|
System. |
|
Overrides
IsPendingPublish
Gets or sets a value indicating whether this instance is in pending publish state.
Declaration
public bool IsPendingPublish { get; set; }
Property Value
Type | Description |
---|---|
System. |
|
StartPublish
Gets or sets the start publish.
Declaration
public Nullable<DateTime> StartPublish { get; set; }
Property Value
Type | Description |
---|---|
System. |
The start publish. |
Status
Gets or sets the status of the instance.
Declaration
public VersionStatus Status { get; set; }
Property Value
Type | Description |
---|---|
Version |
The status. |
StopPublish
Gets or sets the stop publish.
Declaration
public Nullable<DateTime> StopPublish { get; set; }
Property Value
Type | Description |
---|---|
System. |
The stop publish. |
Methods
CreateWriteableCloneImplementation()
Creates a writable clone of this object.
Declaration
protected override object CreateWriteableCloneImplementation()
Returns
Type | Description |
---|---|
System. |
A clone of this object that is writable. |
Overrides
Remarks
This method is called by Create
Your override of this method must create the clone by calling base.CreateWritableCloneImplementation()
. This ensures that all
classes in the inheritance chain can create clones as necessary. Also, by calling the base implementation the values of all value
type members are copied as the Content
MakeReadOnly()
Makes the current instance and all it's properties read-only.
Declaration
public override void MakeReadOnly()
Overrides
Remarks
After calling this method the Istrue
.
ResetModified()
Resets the modified flag on all the properties in the Property collection.
Declaration
protected override void ResetModified()
Overrides
Explicit Interface Implementations
IModifiedTrackable.IsModified
Gets a value indicating whether this instance has been modified after loading.
Declaration
bool IModifiedTrackable.IsModified { get; }
Returns
Type | Description |
---|---|
System. |
|
IModifiedTrackable.ResetModified()
Resets the modified flag on all the properties in the Property collection.
Declaration
void IModifiedTrackable.ResetModified()
IReadOnly.CreateWritableClone()
Creates a writable clone.
Declaration
object IReadOnly.CreateWritableClone()
Returns
Type | Description |
---|---|
System. |
IReadOnly.IsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
bool IReadOnly.IsReadOnly { get; }
Returns
Type | Description |
---|---|
System. |
|
IReadOnly.MakeReadOnly()
Makes the instance read only.
Declaration
void IReadOnly.MakeReadOnly()
IContentSecurable.GetContentSecurityDescriptor()
Declaration
IContentSecurityDescriptor IContentSecurable.GetContentSecurityDescriptor()
Returns
Type | Description |
---|---|
IContent |
ISecurable.GetSecurityDescriptor()
Declaration
ISecurityDescriptor ISecurable.GetSecurityDescriptor()
Returns
Type | Description |
---|---|
ISecurity |