Opc.Ua.Core
SetStatusCode Method (BaseVariableState)



Opc.Ua Namespace > BaseVariableState Class : SetStatusCode Method
The context.
The status code.
The timestamp. Not updated if set to DateTime.Min
Recusively sets the status code and timestamp for the node and all child variables.
Syntax
'Declaration
 
Public Overrides Sub SetStatusCode( _
   ByVal context As ISystemContext, _
   ByVal statusCode As StatusCode, _
   ByVal timestamp As Date _
) 
'Usage
 
Dim instance As BaseVariableState
Dim context As ISystemContext
Dim statusCode As StatusCode
Dim timestamp As Date
 
instance.SetStatusCode(context, statusCode, timestamp)
public override void SetStatusCode( 
   ISystemContext context,
   StatusCode statusCode,
   DateTime timestamp
)
public:
void SetStatusCode( 
   ISystemContext^ context,
   StatusCode statusCode,
   DateTime timestamp
) override 

Parameters

context
The context.
statusCode
The status code.
timestamp
The timestamp. Not updated if set to DateTime.Min
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseVariableState Class
BaseVariableState Members