Gets or sets a ResourceIdentifer that represents the OPC Server to which the bound control connects.
[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 OpcControl
control with the Visavi OPC Simulation Server.
[C#]
OpcControl myOpcControl = new OpcControl();
myOpcControl.ServerIdentifier = new Visavi.ResourceIdentifier("dcom://localhost:0/Visavi.OpcSimulation.1");
[Visual Basic]
OpcControl myOpcControl = New OpcControl();
myOpcControl.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
OpcControl Class |
OpcControl Members | Visavi.Opc.Client
Namespace