Class ReadOnlyObject
ReadOnlyObject is a special object that may be Readonly to enable immutable objects even though properties have set operations. Will throw an InvalidOperationException if write is attempted when object is in ReadOnly mode.
Inheritance
object
ReadOnlyObject
Implements
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public abstract class ReadOnlyObject : IDeserializationCallback
Constructors
View SourceReadOnlyObject()
Initializes a new instance of the ReadOnlyObject class.
Declaration
protected ReadOnlyObject()
ReadOnlyObject(bool)
Initializes a new instance of the ReadOnlyObject class.
Declaration
protected ReadOnlyObject(bool isReadonly)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | isReadonly | if set to |
Properties
View SourceIsReadOnly
Gets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Methods
View SourceDemandWriteAccess()
Demands write access to object.
Declaration
protected void DemandWriteAccess()