November Happy Hour will be moved to Thursday December 5th.

Class StandardContentBase

Class that should be used as the base class for standard IContent implementations. It implements most of the behavioural interfaces.

Inheritance
System.Object
StandardContentBase
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
public abstract class StandardContentBase : ContentBase, IInitializableContent, IContent, IContentData, IChangeTrackable, IExportable, IVersionable, IReadOnly, IModifiedTrackable, IContentSecurable, ISecurable, ICategorizable, ILocalizable, ILocale, IResourceable
Remarks

IRoutable should be implemented to support direct routing to instances.

Constructors

StandardContentBase()

Declaration
protected StandardContentBase()

Properties

ContentAssetsID

Gets or sets the content resource ID.

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

ExistingLanguages

Gets or sets the existing langauges for the ContentData

Declaration
public IEnumerable<CultureInfo> ExistingLanguages { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Globalization.CultureInfo>

The existing langauges.

IsModified

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

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

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

Overrides

Language

Gets or sets the language for this instance.

Declaration
public CultureInfo Language { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

The language.

MasterLanguage

Gets or sets the master language for this instance.

Declaration
public CultureInfo MasterLanguage { get; set; }
Property Value
Type Description
System.Globalization.CultureInfo

The master language.

Methods

CreateWriteableCloneImplementation()

Creates a writable clone of this object.

Declaration
protected override object CreateWriteableCloneImplementation()
Returns
Type Description
System.Object

A clone of this object that is writable.

Overrides
Remarks

This method is called by CreateWritableClone(). If you are inheriting, directly or indirectly, from ContentData you should override this method to make sure that all reference type members of your class are cloned.

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 ContentData implementation of this method calls System.Object.MemberwiseClone().

MakeReadOnly()

Makes the current instance and all it's properties read-only.

Declaration
public override void MakeReadOnly()
Overrides
Remarks

After calling this method the IsReadOnly property will return true.

ResetModified()

Resets the modified flag on all the properties in the Property collection.

Declaration
protected override void ResetModified()
Overrides

Implements

Extension Methods