Method GetConnectionState
GetConnectionState(NetworkStreamConnection)
Return the state of the NetworkStreamConnection connection.
Declaration
public NetworkConnection.State GetConnectionState(NetworkStreamConnection connection)
Parameters
Type | Name | Description |
---|---|---|
NetworkStreamConnection | connection | A client or server connection |
Returns
Type | Description |
---|---|
NetworkConnection.State |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Throw an exception if the driver associated to the connection is not found |