Class Lockable
Base class for lockable values. Lockable values are values in SDS2 which can be locked to a user value, or unlocked and set by process to a system generated value.
Inheritance
System.Object
Lockable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DesignData.SDS2.Model
Assembly: DesignData.SDS2.Model.dll
Syntax
public class Lockable
Remarks
To get an actual value, you must cast this to its lockable type.
Note that Lockable objects are always copies. You can make changes to them, but for those changes to matter you must assign them back where you got them after making changes.
Properties
IsLocked
True if this is locked to a user value
Declaration
public bool IsLocked { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
LockType
Declaration
public LockType LockType { get; set; }
Property Value
Type | Description |
---|---|
LockType |
Methods
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Finalize()
Declaration
protected void Finalize()
GetIsLocked()
True if this is locked to a user value
Declaration
public bool GetIsLocked()
Returns
Type | Description |
---|---|
System.Boolean |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Unlock()
Unlock this value, let it be set by the system during process
Declaration
public void Unlock()