UA Bundle SDK .NET
2.4.0.361
|
A type description for a structured which is also a simple union. More...
Inherits UnifiedAutomation.UaBase.GenericStructureDataType.
Public Member Functions | |
GenericUnionDataType () | |
Initializes a new instance of the GenericUnionDataType class. More... | |
bool | TryGetSwitchValue (string fieldName, out uint value) |
Tries the get switch value. More... | |
bool | TryGetSwitchField (uint value, out string fieldName) |
Trys to get the fieldName for a value. More... | |
void | SetSwitchValue (string fieldName, uint value) |
Sets the switch value for a field. More... | |
override void | Add (GenericStructureDataTypeField value) |
Adds the field for the specified field name. More... | |
override string | ToString (string format, IFormatProvider formatProvider) |
Returns a System.String that represents this instance. More... | |
Public Member Functions inherited from UnifiedAutomation.UaBase.GenericStructureDataType | |
GenericStructureDataType () | |
Initializes a new instance of the GenericStructureDataType class. More... | |
bool | TryGetValue (string name, out GenericStructureDataTypeField value) |
Checks whether the specified field exists and returns it if it does. More... | |
bool | Remove (string name) |
Removes the field with the specified name. More... | |
void | RemoveAt (int ii) |
Removes the field at the specified index. More... | |
IEnumerator< KeyValuePair < string, GenericStructureDataTypeField > > | GetEnumerator () |
Returns an enumerator that iterates through the collection. More... | |
Public Member Functions inherited from UnifiedAutomation.UaBase.GenericDataType | |
override string | ToString () |
Returns a System.String that represents this instance. More... | |
Properties | |
override GenericDataTypeClass | TypeClass [get] |
Gets the type class for the object. More... | |
string | SwitchField [get, set] |
The name of switch field which specifies the field stored in the union. More... | |
Properties inherited from UnifiedAutomation.UaBase.GenericStructureDataType | |
ExpandedNodeId | DataTypeId [get, set] |
The NodeId for data type node. More... | |
ExpandedNodeId | XmlEncodingNodeId [get, set] |
The NodeId for the DefaultXML encoding node. More... | |
ExpandedNodeId | BinaryEncodingNodeId [get, set] |
The NodeId for the DefaultBinary encoding node. More... | |
override GenericDataTypeClass | TypeClass [get] |
Gets the type class for the object. More... | |
int | Count [get] |
Gets the number of fields in the structure. More... | |
IList< string > | Fields [get] |
Gets list of field names. More... | |
GenericStructureDataTypeField | this[string key] [get, set] |
Gets or sets the field with the specified field name. More... | |
GenericStructureDataTypeField | this[int index] [get, set] |
Gets or sets the field at the specified index. More... | |
Properties inherited from UnifiedAutomation.UaBase.GenericDataType | |
XmlQualifiedName | Name [get, set] |
Gets or sets the qualified name for the type. More... | |
abstract GenericDataTypeClass | TypeClass [get] |
Gets the type class for the object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from UnifiedAutomation.UaBase.GenericStructureDataType | |
void | Rename (string oldName, string newName) |
Renames the specified field. More... | |
A type description for a structured which is also a simple union.
|
inline |
Initializes a new instance of the GenericUnionDataType class.
|
inlinevirtual |
Adds the field for the specified field name.
Set the SwitchTable entry implicitly.
value | A description for the field. |
Reimplemented from UnifiedAutomation.UaBase.GenericStructureDataType.
|
inline |
Sets the switch value for a field.
If a switch value is already set for the field, the existing assignment is removed.
fieldName | |
value |
|
inlinevirtual |
Returns a System.String that represents this instance.
format | The format. |
formatProvider | The format provider. |
Reimplemented from UnifiedAutomation.UaBase.GenericStructureDataType.
|
inline |
Trys to get the fieldName for a value.
value | The value that is used as the 'selector' of a union. |
fieldName | The name of the field that is valid if the switch field has the value value. |
|
inline |
Tries the get switch value.
fieldName | Name of the field. |
value | The value. |
This method uses a linear search and could perform poorly in some contexts.
System.ArgumentNullException | fieldName |
|
getset |
The name of switch field which specifies the field stored in the union.
|
get |
Gets the type class for the object.
The type class.