Click or drag to resize
LockedSection Class
Locked section, locks only when the object lock is available.
Inheritance Hierarchy
SystemObject
  CMS.BaseLockedSection

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
public class LockedSection : IDisposable

The LockedSection type exposes the following members.

Constructors
  NameDescription
Public methodLockedSection(Boolean, Object)
Constructor, locks the section on specific object.
Public methodLockedSection(Boolean, String)
Constructor, locks the section on the given string key.
Top
Methods
  NameDescription
Public methodDispose
Disposes the object.
Protected methodEnter
Enters the monitor.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldmBoolCondition
Boolean condition for the locking.
Protected fieldmLock
Object for the synchronization.
Protected fieldmWasBlocked
Flag whether the execution was blocked by another code or not.
Top
Properties
  NameDescription
Public propertyWasBlocked
Returns whether the execution was blocked by another code or not.
Top
See Also