Reference
OpcDataFieldInfo Members
Provides metadata of a field declared by a data type.
Reference
OpcDataFieldInfo Members
- Type
- OpcDataFieldInfo
- Namespace
- Opc.UaFx
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Properties
CustomAttributes
Gets an array of custom attributes associated with this field.
public virtual string[] CustomAttributes { get; }Public Overridable ReadOnly Property CustomAttributes As String()Property value
String[]
An array of string values used by the author of this field.
Remarks
Applications are not be required to understand these attributes in order to interpret an encoded field value.
DeclaringType
Gets the type that declares the current OpcDataFieldInfo.
public OpcDataTypeInfo DeclaringType { get; }Public ReadOnly Property DeclaringType As OpcDataTypeInfoProperty value
An instance of the OpcDataTypeInfo which declares the current OpcDataFieldInfo.
Documentation
Gets any semantic information that would help a human to understand what is contained in the field.
public virtual string Documentation { get; }Public Overridable ReadOnly Property Documentation As StringProperty value
A human readable text that describes what is contained in the field and that would help a human to understand what the field represented.
FieldType
Gets the type of value this field provides.
public OpcDataTypeInfo FieldType { get; }Public ReadOnly Property FieldType As OpcDataTypeInfoProperty value
The OpcDataTypeInfo representing the type of value this field provides.
IsOptional
Gets a value indicating whether the current field might not necessarily exist in the object defined by the DeclaringType.
public bool IsOptional { get; }Public ReadOnly Property IsOptional As BooleanProperty value
The value true if the field might not always exists; otherwise the value false. Additionally see the Switch property.
Implements
Length
Gets the length of the field expressed either explicit or implicit using a different OpcDataFieldInfo.
public virtual OpcMemberLength Length { get; }Public Overridable ReadOnly Property Length As OpcMemberLengthProperty value
An instance of the OpcMemberLength class with the explicit length of the field or the reference to the OpcDataFieldInfo its value expresses the length of the current OpcDataFieldInfo.
Implements
LengthField
Gets the OpcDataFieldInfo used to define the length of the current OpcDataFieldInfo.
public virtual OpcDataFieldInfo LengthField { get; }Public Overridable ReadOnly Property LengthField As OpcDataFieldInfoProperty value
An instance of the OpcDataFieldInfo class its value expresses the length of the current OpcDataFieldInfo or a null reference (Nothing in Visual Basic) if the Length does not refer to a different OpcDataFieldInfo used to express the length of the field.
Name
Gets the name of the current OpcDataFieldInfo.
public string Name { get; }Public ReadOnly Property Name As StringProperty value
A string containing the name of this field.
Implements
ReflectedType
Gets the type that was used to obtain this instance of OpcDataFieldInfo.
public OpcDataTypeInfo ReflectedType { get; }Public ReadOnly Property ReflectedType As OpcDataTypeInfoProperty value
An instance of the OpcDataTypeInfo used to obtain this instance.
Switch
Gets the switch condition which applies to the current OpcDataFieldInfo.
public virtual OpcMemberSwitch Switch { get; }Public Overridable ReadOnly Property Switch As OpcMemberSwitchProperty value
An instance of the OpcMemberSwitch class which defines the conditions to fulfill so that the current OpcDataFieldInfo exists in an instance.
Implements
SwitchField
Gets the OpcDataFieldInfo used to evaluate the Switch condition which applies to the current OpcDataFieldInfo.
public virtual OpcDataFieldInfo SwitchField { get; }Public Overridable ReadOnly Property SwitchField As OpcDataFieldInfoProperty value
An instance of the OpcDataFieldInfo class its value is to be evaluated to determine whether the current OpcDataFieldInfo exists in an instance.
Methods
GetLength
Gets the maximum length of the specified dimension of the field as the definition of its data type states it.
public virtual int GetLength(int dimension)Public Overridable Function GetLength(dimension As Integer) As IntegerParameters
| Name | Type | Description |
|---|---|---|
dimension | Int32 | A zero-based dimension of the FieldType whose length is to be determined; its number of dimensions is stated by GetArrayRank. |
Returns
The maximum length of the dimension, or 0 if it is not known. A value may hold less.
Exceptions
| Exception | Condition |
|---|---|
| Index | The FieldType is not an array, or the dimension is less than zero or equal to or greater than its number of dimensions. |
Remarks
Of a field of one dimension, the length is the one stated by Length as well, if that is not given by a different field.
GetValue
Gets the value of the field supported by the given object instance.
public virtual object GetValue(object instance)Public Overridable Function GetValue(instance As Object) As ObjectParameters
| Name | Type | Description |
|---|---|---|
instance | Object | The object whose field value will be returned. |
Returns
An object containing the value of the field reflected by this instance.
Implements
Remarks
This method throws a NotSupportedException and have to be overridden in a derived class.
SetValue
Sets the value of the field supported by the given object instance.
public virtual void SetValue(object instance, object value)Public Overridable Sub SetValue(instance As Object, value As Object)Parameters
| Name | Type | Description |
|---|---|---|
instance | Object | The object whose field value will be set. |
value | Object | The value to assign to the field. |
Implements
Remarks
This method throws a NotSupportedException and have to be overridden in a derived class.
ToString
Returns a string representing the Name and FieldType of the current OpcDataFieldInfo.
public override string ToString()Public Overrides Function ToString() As StringReturns
A string representing the Name and the FieldType of the current OpcDataFieldInfo.
Overrides

