Visavi Visual OPC .NET  

OpcConnection.ConnectionScheme Property

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

[Visual Basic]
Public Property ConnectionScheme As ConnectionScheme
[C#]
public ConnectionScheme ConnectionScheme {get; set;}
[C++]
public: __property ConnectionScheme get_ConnectionScheme();
public: __property void set_ConnectionScheme(ConnectionScheme);
[JScript]
public function get ConnectionScheme() : ConnectionScheme;
public function set ConnectionScheme(ConnectionScheme);

Property Value

A ConnectionScheme that represents how and when the OpcConnection connects to the identified OPC server. The default is RunModeOnly.

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 denotes when the OpcConnection is actually connected to the server. In most cases, you only desire to connect to the OPC server when the component is in the run mode, not during design time. However, if this funtionality is required, set the ConnectionScheme to the appropriate value. Use ManualConnect when you require complete control of when the OPC Server is connected or not.

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