Generic server callback method.
Set the OPC server state value, that is returned in client GetStatus calls.
Visual Basic (Declaration) | |
---|---|
Public Shared Sub SetServerState( _ ByVal newState As OpcServerState _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim newState As OpcServerState GenericServer.SetServerState(newState) |
C# | |
---|---|
public static void SetServerState( OpcServerState newState ) |
Managed Extensions for C++ | |
---|---|
public: static void SetServerState( OpcServerState newState ) |
C++/CLI | |
---|---|
public: static void SetServerState( OpcServerState newState ) |
Parameters
- newState
- An OpcServerState enumerator value.
Return Value
Always S_OKTarget Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family