A value for a generic structured or generic union data type.
More...
Inherits UnifiedAutomation.UaBase.EncodeableObject, and IFormattable.
A value for a generic structured or generic union data type.
UnifiedAutomation.UaBase.GenericEncodeableObject.GenericEncodeableObject |
( |
| ) |
|
|
inline |
UnifiedAutomation.UaBase.GenericEncodeableObject.GenericEncodeableObject |
( |
GenericDataType |
dataType | ) |
|
|
inline |
Initializes a new instance of the GenericEncodeableObject class.
- Parameters
-
dataType | The structured data type that describes the value. |
override void UnifiedAutomation.UaBase.GenericEncodeableObject.Decode |
( |
IDecoder |
decoder | ) |
|
|
inlinevirtual |
override void UnifiedAutomation.UaBase.GenericEncodeableObject.Encode |
( |
IEncoder |
encoder | ) |
|
|
inlinevirtual |
override bool UnifiedAutomation.UaBase.GenericEncodeableObject.IsEqual |
( |
IEncodeable |
encodeable | ) |
|
|
inlinevirtual |
Does a deep comparison of two encodeable objects.
- Parameters
-
encodeable | The target to compare. |
- Returns
- TRUE if the target is equal; FALSE otherwise.
Reimplemented from UnifiedAutomation.UaBase.EncodeableObject.
Sets the structured or union data type that describes the value.
- Parameters
-
dataType | Type of the data. |
override string UnifiedAutomation.UaBase.GenericEncodeableObject.ToString |
( |
| ) |
|
|
inline |
Returns a System.String that represents this instance.
- Returns
- A System.String that represents this instance.
string UnifiedAutomation.UaBase.GenericEncodeableObject.ToString |
( |
string |
format, |
|
|
IFormatProvider |
formatProvider |
|
) |
| |
|
inline |
Returns a System.String that represents this instance.
- Parameters
-
format | The format. |
formatProvider | The format provider. |
- Returns
- A System.String that represents this instance.
bool UnifiedAutomation.UaBase.GenericEncodeableObject.TryGetFieldValue |
( |
string |
name, |
|
|
out Variant |
value |
|
) |
| |
|
inline |
Tries to get the value of the field.
- Parameters
-
name | The name of the field. |
value | The value. |
- Returns
- TRUE if the field exists; FALSE otherwise.
override ExpandedNodeId UnifiedAutomation.UaBase.GenericEncodeableObject.BinaryEncodingId |
|
get |
The is of the DefaultBinary encoding node.
uint UnifiedAutomation.UaBase.GenericEncodeableObject.EncodingMask |
|
getset |
Gets or sets the encoding mask (only valid if the type is a structure with optional fields).
The encoding mask (only valid if the type is a structure with optional fields).
- Exceptions
-
System.NotSupportedException | Only Structires with Optional Fields have encoding masks. |
uint UnifiedAutomation.UaBase.GenericEncodeableObject.SwitchValue |
|
getset |
Gets or sets the value of the switch field (only valid if the type is a union).
The value of the switch field (only valid if the type is a union).
- Exceptions
-
System.NotSupportedException | Only Unions have switch fields. |
Variant UnifiedAutomation.UaBase.GenericEncodeableObject.this[int ii] |
|
getset |
Gets or sets the value of a field at the specified index.
The field at the specified index.
- Parameters
-
- Returns
- The value for the field at the specified index.
Variant UnifiedAutomation.UaBase.GenericEncodeableObject.this[string name] |
|
getset |
Gets or sets the value of a field with the specified field name.
The value of a field with the specified field name.
- Parameters
-
name | The name of the field. |
- Returns
- The value of the field.
Gets the structured data type which describes the value.
The structured data type which describes the value.
override ExpandedNodeId UnifiedAutomation.UaBase.GenericEncodeableObject.TypeId |
|
get |
The id of the data type node.
override ExpandedNodeId UnifiedAutomation.UaBase.GenericEncodeableObject.XmlEncodingId |
|
get |
The is of the DefaultXML encoding node.
The documentation for this class was generated from the following file:
- C:/work/uasdknet/src/UaBase/Encoders/GenericEncodeableObject.cs