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
System.Object
ContentLock
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7Syntax
public class ContentLock
Constructors
ContentLock(ContentReference, String, String, DateTime)
Creates a new instance of ContentLock
Declaration
public ContentLock(ContentReference contentLink, string lockedBy, string lockIdentifier, DateTime locked)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content version that is locked |
System.String | lockedBy | The user who locked the version |
System.String | lockIdentifier | An identifier for the lock |
System.DateTime | 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 |
---|---|
ContentReference |
Locked
Gets or sets the date and time when the content version was locked
Declaration
public DateTime Locked { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
LockedBy
Gets or sets the username of the user that locked this content version.
Declaration
public string LockedBy { get; }
Property Value
Type | Description |
---|---|
System.String |
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.String |