Method GetConnectionState
GetConnectionState(NetworkConnection)
Get the current state of the given connection.
Declaration
public NetworkConnection.State GetConnectionState(NetworkConnection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkConnection | connection | Connection to get the state of. |
Returns
| Type | Description |
|---|---|
| NetworkConnection.State | State of the connection. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If |