Method GetDriver
GetDriver(int)
Get a NetworkDriver previously added with AddDriver(NetworkDriver).
Declaration
public NetworkDriver GetDriver(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | ID of the driver as returned by AddDriver(NetworkDriver). |
Returns
| Type | Description |
|---|---|
| NetworkDriver | The NetworkDriver referred to by |
Remarks
This method is provided as an escape hatch for use cases not covered by the
MultiNetworkDriver API. Using this method to perform operations on a driver that
could be performed through MultiNetworkDriver is likely to result in errors or
corrupted state.
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | If |