PicoOPC User's Guide and Reference
ConnectAsync Method



OpcLabs.PicoOpc Assembly > OpcLabs.PicoOpc.UA Namespace > Client Class : ConnectAsync Method
The URL of the server.
Asynchronously connects to the server.
Syntax
'Declaration
 
<AsyncStateMachineAttribute(OpcLabs.PicoOpc.UA.Client+d__14)> 
Public Function ConnectAsync( _ 
   ByVal uri As Uri _ 
) As Task
'Usage
 
Dim instance As Client
Dim uri As Uri
Dim value As Task
 
value = instance.ConnectAsync(uri)
[AsyncStateMachine(OpcLabs.PicoOpc.UA.Client+d__14)] 
public Task ConnectAsync( 
   Uri uri 
)
[AsyncStateMachine(OpcLabs.PicoOpc.UA.Client+d__14)] 
public: 
Task^ ConnectAsync( 
   Uri^ uri 
) 

Parameters

uri
The URL of the server.
Exceptions
ExceptionDescription
Serves as the base class for application-defined exceptions.
Usage error.
Usage error.
The exception that is thrown when an I/O error occurs.
 
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Client Class
Client Members