OPC Studio User's Guide and Reference
ValueType Property (UAAttributePointWriteParameters)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Connectivity Namespace > UAAttributePointWriteParameters Class : ValueType Property
Specifies the type that should be used when writing the Value attribute.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<DefaultValueAttribute(Mono.Cecil.CustomAttributeArgument)>
<DisplayAttribute(AutoGenerateField=False, 
   Order=2003, 
   ShortName="Value Type")>
<IgnoreDataMemberAttribute()>
<XmlIgnoreAttribute()>
Public Property ValueType As Type
'Usage
 
Dim instance As UAAttributePointWriteParameters
Dim value As Type
 
instance.ValueType = value
 
value = instance.ValueType
[CanBeNull()]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[Display(AutoGenerateField=false, 
   Order=2003, 
   ShortName="Value Type")]
[IgnoreDataMember()]
[XmlIgnore()]
public Type ValueType {get; set;}
[CanBeNull()]
[DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[Display(AutoGenerateField=false, 
   Order=2003, 
   ShortName="Value Type")]
[IgnoreDataMember()]
[XmlIgnore()]
public:
property Type^ ValueType {
   Type^ get();
   void set (    Type^ value);
}

Property Value

The type that should be used when writing the Value attribute.
Remarks

The value of this property is not used when the UAAttributePoint.AttributeId is other than OpcLabs.EasyOpc.UA.UAAttributeId.Value.

A null value in this property means that the component will determine the type of the Value attribute from the DataType and ValueRank attributes of the node first. This can have negative implication on the performance, and introduces a dependency of the value written on the behavior of the OPC server itself.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also