OPC Studio User's Guide and Reference
SetState Method (OperationResult)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.OperationModel Namespace > OperationResult Class : SetState Method
Sets the arbitrary object associated with the operation.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Sub SetState( _
   ByVal state As Object _
) 
'Usage
 
Dim instance As OperationResult
Dim state As Object
 
instance.SetState(state)
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void SetState( 
   object state
)
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public:
void SetState( 
   Object^ state
) 

Parameters

state
Remarks

Intended for certain COM callers. You can simply use the State property setter in .NET instead.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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