C# Класс Opc.Ua.BaseVariableTypeState

The base class for all variable type nodes.
Наследование: BaseTypeState
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
OnReadArrayDimensions NodeAttributeEventHandler>
OnReadDataType NodeAttributeEventHandler
OnReadValueRank NodeAttributeEventHandler
OnSimpleReadValue NodeValueSimpleEventHandler
OnSimpleWriteValue NodeValueSimpleEventHandler
OnWriteArrayDimensions NodeAttributeEventHandler>
OnWriteDataType NodeAttributeEventHandler
OnWriteValueRank NodeAttributeEventHandler

Открытые методы

Метод Описание
GetAttributesToSave ( ISystemContext context ) : AttributesToSave

Returns a mask which indicates which attributes have non-default value.

Save ( ISystemContext context, BinaryEncoder encoder, AttributesToSave attributesToSave ) : void

Saves object in an binary stream.

Save ( ISystemContext context, XmlEncoder encoder ) : void

Saves the attributes from the stream.

Update ( ISystemContext context, BinaryDecoder decoder, AttributesToSave attibutesToLoad ) : void

Updates the specified context.

Update ( ISystemContext context, XmlDecoder decoder ) : void

Updates the attributes from the stream.

Защищенные методы

Метод Описание
BaseVariableTypeState ( ) : System

Initializes the instance with its defalt attribute values.

Export ( ISystemContext context, Node node ) : void

Exports a copy of the node to a node table.

ExtractValueFromVariant ( ISystemContext context, object value, bool throwOnError ) : object

Sets the value to its default value if it is not valid.

Initialize ( ISystemContext context, NodeState source ) : void

Initializes the instance from another instance.

ReadNonValueAttribute ( ISystemContext context, uint attributeId, object &value ) : ServiceResult

Reads the value for any non-value attribute.

ReadValueAttribute ( ISystemContext context, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, System.DateTime &sourceTimestamp ) : ServiceResult

Reads the value for the value attribute.

WriteNonValueAttribute ( ISystemContext context, uint attributeId, object value ) : ServiceResult

Write the value for any non-value attribute.

WriteValueAttribute ( ISystemContext context, NumericRange indexRange, object value, Opc.Ua.StatusCode statusCode, System.DateTime sourceTimestamp ) : ServiceResult

Write the value for the value attribute.

Описание методов

BaseVariableTypeState() защищенный Метод

Initializes the instance with its defalt attribute values.
protected BaseVariableTypeState ( ) : System
Результат System

Export() защищенный Метод

Exports a copy of the node to a node table.
protected Export ( ISystemContext context, Node node ) : void
context ISystemContext The context.
node Node The node.
Результат void

ExtractValueFromVariant() защищенный Метод

Sets the value to its default value if it is not valid.
protected ExtractValueFromVariant ( ISystemContext context, object value, bool throwOnError ) : object
context ISystemContext
value object
throwOnError bool
Результат object

GetAttributesToSave() публичный Метод

Returns a mask which indicates which attributes have non-default value.
public GetAttributesToSave ( ISystemContext context ) : AttributesToSave
context ISystemContext The context for the system being accessed.
Результат AttributesToSave

Initialize() защищенный Метод

Initializes the instance from another instance.
protected Initialize ( ISystemContext context, NodeState source ) : void
context ISystemContext
source NodeState
Результат void

ReadNonValueAttribute() защищенный Метод

Reads the value for any non-value attribute.
protected ReadNonValueAttribute ( ISystemContext context, uint attributeId, object &value ) : ServiceResult
context ISystemContext
attributeId uint
value object
Результат ServiceResult

ReadValueAttribute() защищенный Метод

Reads the value for the value attribute.
protected ReadValueAttribute ( ISystemContext context, NumericRange indexRange, Opc.Ua.QualifiedName dataEncoding, object &value, System.DateTime &sourceTimestamp ) : ServiceResult
context ISystemContext
indexRange NumericRange
dataEncoding Opc.Ua.QualifiedName
value object
sourceTimestamp System.DateTime
Результат ServiceResult

Save() публичный Метод

Saves object in an binary stream.
public Save ( ISystemContext context, BinaryEncoder encoder, AttributesToSave attributesToSave ) : void
context ISystemContext The context user.
encoder BinaryEncoder The encoder to write to.
attributesToSave AttributesToSave The masks indicating what attributes to write.
Результат void

Save() публичный Метод

Saves the attributes from the stream.
public Save ( ISystemContext context, XmlEncoder encoder ) : void
context ISystemContext The context for the system being accessed.
encoder XmlEncoder The encoder wrapping the stream to write.
Результат void

Update() публичный Метод

Updates the specified context.
public Update ( ISystemContext context, BinaryDecoder decoder, AttributesToSave attibutesToLoad ) : void
context ISystemContext The context.
decoder BinaryDecoder The decoder.
attibutesToLoad AttributesToSave The attributes to load.
Результат void

Update() публичный Метод

Updates the attributes from the stream.
public Update ( ISystemContext context, XmlDecoder decoder ) : void
context ISystemContext The context for the system being accessed.
decoder XmlDecoder The decoder wrapping the stream to read.
Результат void

WriteNonValueAttribute() защищенный Метод

Write the value for any non-value attribute.
protected WriteNonValueAttribute ( ISystemContext context, uint attributeId, object value ) : ServiceResult
context ISystemContext
attributeId uint
value object
Результат ServiceResult

WriteValueAttribute() защищенный Метод

Write the value for the value attribute.
protected WriteValueAttribute ( ISystemContext context, NumericRange indexRange, object value, Opc.Ua.StatusCode statusCode, System.DateTime sourceTimestamp ) : ServiceResult
context ISystemContext
indexRange NumericRange
value object
statusCode Opc.Ua.StatusCode
sourceTimestamp System.DateTime
Результат ServiceResult

Описание свойств

OnReadArrayDimensions публичное свойство

Raised when the ArrayDimensions attribute is read.
public NodeAttributeEventHandler> OnReadArrayDimensions
Результат NodeAttributeEventHandler>

OnReadDataType публичное свойство

Raised when the DataType attribute is read.
public NodeAttributeEventHandler OnReadDataType
Результат NodeAttributeEventHandler

OnReadValueRank публичное свойство

Raised when the ValueRank attribute is read.
public NodeAttributeEventHandler OnReadValueRank
Результат NodeAttributeEventHandler

OnSimpleReadValue публичное свойство

Raised when the Value attribute is read.
public NodeValueSimpleEventHandler OnSimpleReadValue
Результат NodeValueSimpleEventHandler

OnSimpleWriteValue публичное свойство

Raised when the Value attribute is written.
public NodeValueSimpleEventHandler OnSimpleWriteValue
Результат NodeValueSimpleEventHandler

OnWriteArrayDimensions публичное свойство

Raised when the ArrayDimensions attribute is written.
public NodeAttributeEventHandler> OnWriteArrayDimensions
Результат NodeAttributeEventHandler>

OnWriteDataType публичное свойство

Raised when the DataType attribute is written.
public NodeAttributeEventHandler OnWriteDataType
Результат NodeAttributeEventHandler

OnWriteValueRank публичное свойство

Raised when the ValueRank attribute is written.
public NodeAttributeEventHandler OnWriteValueRank
Результат NodeAttributeEventHandler