QuickOPC User's Guide and Reference
StatusCode Property (UABaseVariable<TValue,TAttribute>)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Modelling Namespace > UABaseVariable<TValue,TAttribute> Class : StatusCode Property
Contains the status code for the result of the operation.
Syntax
'Declaration
 
<MappingTagAttribute("OpcLabs.EasyOpc.UA.Modelling.VariableValue")>
<NotNullAttribute()>
<UADataAttribute(Kind=UADataMappingKind.ErrorCode Or  _
    UADataMappingKind.Exception Or  _
    UADataMappingKind.ErrorMessage Or  _
    UADataMappingKind.ServerTimestampLocal Or  _
    UADataMappingKind.SourceTimestamp Or  _
    UADataMappingKind.SourceTimestampLocal Or  _
    UADataMappingKind.StatusCode, 
   Operations=UADataMappingOperations.Read Or  _
    UADataMappingOperations.Subscribe Or  _
    UADataMappingOperations.ReadAndSubscribe)>
Public Property StatusCode As UAStatusCode
'Usage
 
Dim instance As UABaseVariable(Of TValue,TAttribute)
Dim value As UAStatusCode
 
instance.StatusCode = value
 
value = instance.StatusCode
[MappingTag("OpcLabs.EasyOpc.UA.Modelling.VariableValue")]
[NotNull()]
[UAData(Kind=UADataMappingKind.ErrorCode | 
    UADataMappingKind.Exception | 
    UADataMappingKind.ErrorMessage | 
    UADataMappingKind.ServerTimestampLocal | 
    UADataMappingKind.SourceTimestamp | 
    UADataMappingKind.SourceTimestampLocal | 
    UADataMappingKind.StatusCode, 
   Operations=UADataMappingOperations.Read | 
    UADataMappingOperations.Subscribe | 
    UADataMappingOperations.ReadAndSubscribe)]
public UAStatusCode StatusCode {get; set;}
[MappingTag("OpcLabs.EasyOpc.UA.Modelling.VariableValue")]
[NotNull()]
[UAData(Kind=UADataMappingKind.ErrorCode | 
    UADataMappingKind.Exception | 
    UADataMappingKind.ErrorMessage | 
    UADataMappingKind.ServerTimestampLocal | 
    UADataMappingKind.SourceTimestamp | 
    UADataMappingKind.SourceTimestampLocal | 
    UADataMappingKind.StatusCode, 
   Operations=UADataMappingOperations.Read | 
    UADataMappingOperations.Subscribe | 
    UADataMappingOperations.ReadAndSubscribe)]
public:
property UAStatusCode^ StatusCode {
   UAStatusCode^ get();
   void set (    UAStatusCode^ value);
}
Requirements

Target Platforms: Windows 7 with SP1, Windows Server 2008 R2 with SP1

See Also

Reference

UABaseVariable<TValue,TAttribute> Class
UABaseVariable<TValue,TAttribute> Members