Class ChangeTracking
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Default implementation of IChangeTrackable.
Inheritance
Inherited Members
Namespace: EPiServer.Core.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class ChangeTracking : IChangeTrackable, IReadOnly<ChangeTracking>, IReadOnly, IModifiedTrackable
Constructors
ChangeTracking()
Declaration
public ChangeTracking()
Properties
Changed
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the date when this content instance was last marked as changed.
Declaration
public DateTime Changed { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Remarks
The changed date is only updated when property SetChangedOnPublish is set to true
.
ChangedBy
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the username of the user that most recently changed this content instance.
Declaration
public string ChangedBy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
For instance, if a Windows account was used to create the instance, expect a string being returned looking like 'DOMAIN\User Name'.
Created
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the date and time when this content instance was created.
Declaration
public DateTime Created { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Remarks
Created is maintained by the EPiServer infrastructure and you have no control over them.
CreatedBy
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the username of the user that created this content instance.
Declaration
public string CreatedBy { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Deleted
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets a value indicating when this instance is deleted.
Declaration
public DateTime? Deleted { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> | The deleted date. |
DeletedBy
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets a value indicating who deleted this instance.
Declaration
public string DeletedBy { get; set; }
Property Value
Type | Description |
---|---|
System.String | The deleted by. |
IsModified
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets a value indicating whether this instance has been modified after loading.
Declaration
public bool IsModified { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsReadOnly
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Saved
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the date and time when this content instance was last saved.
Declaration
public DateTime Saved { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Remarks
Saved is the sibling of Created and is maintained by the EPiServer infrastructure. This means that you have no control over them.
SetChangedOnPublish
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets or sets a value indicating whether the Changed should be updated on publish.
Declaration
public bool SetChangedOnPublish { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
CreateWritableClone()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates the writable clone.
Declaration
public ChangeTracking CreateWritableClone()
Returns
Type | Description |
---|---|
ChangeTracking |
MakeReadOnly()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Makes the read only.
Declaration
public void MakeReadOnly()
ResetModified()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Resets the modified flag on all the data contained on the instance.
Declaration
public void ResetModified()
ThrowIfReadOnly()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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()
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates the writable clone.
Declaration
object IReadOnly.CreateWritableClone()
Returns
Type | Description |
---|---|
System.Object |