Visavi Visual OPC .NET  

OpcConnection.Connected Property

Gets or sets a value indicating whether the OpcConnection is connected to the server specified in the ServerIdentifier property.

[Visual Basic]
Public Property Connected As Boolean

[C#]
public bool Connected {get; set;}

[C++]
public: __property bool get_Connected();
public: __property void set_Connected(bool);

[JScript]
public function get Connected() : Boolean;
public function set Connected(Boolean);

Property Value

true if the OpcConnection object is connected with the specified server; false if the server is not connected.

Exceptions

Exception Type Condition
OpcServerConnectException The client was unable to connect to the specified server. Check inner exceptions for more details on the reason for the inability to connect.

Remarks

This value may only be set when the ConnectionScheme property is set to ManualConnect. Otherwise, the connection is made automatically as defined by the ConnectionScheme.

Requirements

Platforms: Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

OpcConnection Class | OpcConnection Members | Visavi.Opc.Client Namespace