OPCDA.NET Reference Manual
GetStatus(SrvStatus) Method
See Also  Send Feedback
OpcDaNetUA.Net4 Assembly > OPCDA.NET Namespace > OpcServer Class > GetStatus Method : GetStatus(SrvStatus) Method

serverStatus
OUT: current server status

Glossary Item Box

Get the current status of the OPC Server in an object with .Net types. See OPC specs IOPCServer::GetStatus for details.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetStatus( _
   ByRef serverStatus As SrvStatus _
) As Integer
C# 
public int GetStatus( 
   out SrvStatus serverStatus
)

Parameters

serverStatus
OUT: current server status

Return Value

HRESULT success/error code

Remarks

If the client relies on asynchronous refresh and does not periodically access the server, then it should periodically call GetStatus to determine that the server is still connected and available.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2016, .NET 4.x

See Also

Copyright © 2002-2018 Advosol Inc. All Rights Reserved.