Gets or sets a ResourceIdentifer that represents the OPC Server that the OpcConnection object connects to when the Connected property is set to true.
[Visual Basic] Public Property ServerIdentifier As ResourceIdentifier [C#] public ResourceIdentifier ServerIdentifier {get; set;} [C++] public: __property ResourceIdentifier get_ServerIdentifier(); public: __property void set_ServerIdentifier(ResourceIdentifier); [JScript] public function get ServerIdentifier() : ResourceIdentifier; public function set ServerIdentifier(ResourceIdentifier);
A ResourceIdentifier that represents the path to the OPC server.
| 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. |
[Visual Basic, C#]
The following code excerpt binds an OpcConnection
component with the Visavi OPC Simulation Server.
[C#]
OpcConnection myOpcConnection = new OpcConnection();
myOpcConnection.ServerIdentifier = new Visavi.ResourceIdentifier("dcom://localhost:0/Visavi.OpcSimulation.1");
[Visual Basic]
OpcConnection myOpcConnection = New OpcConnection();
myOpcConnection.ServerIdentifier = New Visavi.ResourceIdentifier("dcom://localhost:0/Visavi.OpcSimulation.1");
[C++, JScript] No example is available for C++ or
JScript. To view a Visual Basic or C# example, click the Language Filter button
in the upper-left corner
of the page.
Platforms: Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
OpcConnection Class | OpcConnection Members | Visavi.Opc.Client Namespace