Method Connect
Connect(NetworkEndPoint)
Connects the driver to a endpoint
Declaration
public NetworkConnection Connect(NetworkEndPoint endpoint)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkEndPoint | endpoint | Endpoint to connect to. |
Returns
| Type | Description |
|---|---|
| NetworkConnection | If connect fails it returns a default NetworkConnection. |
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | If the driver is not created properly |