Class ContentLock
NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. Contains metadata information about a locked content version
Inheritance
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ContentLock : Object
Constructors
ContentLock(ContentReference, String, String, DateTime)
Creates a new instance of Content
Declaration
public ContentLock(ContentReference contentLink, string lockedBy, string lockIdentifier, DateTime locked)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content version that is locked |
System. |
lockedBy | The user who locked the version |
System. |
lockIdentifier | An identifier for the lock |
System. |
locked | The date and time when the version was locked |
Properties
ContentLink
The content version that is locked
Declaration
public ContentReference ContentLink { get; }
Property Value
Type | Description |
---|---|
Content |
Locked
Gets or sets the date and time when the content version was locked
Declaration
public DateTime Locked { get; }
Property Value
Type | Description |
---|---|
System. |
LockedBy
Gets or sets the username of the user that locked this content version.
Declaration
public string LockedBy { get; }
Property Value
Type | Description |
---|---|
System. |
LockIdentifier
Gets or sets the identifier for the owner of the lock, for example a component
Declaration
public string LockIdentifier { get; }
Property Value
Type | Description |
---|---|
System. |