| Namespace | Windows.Devices.Midi2.Transports.Network |
|---|---|
| Type Name | MidiNetworkClientDisconnectConfig |
| Type | WinRT Runtime Class |
| Implements | IMidiServiceTransportPluginConfig |
| IDL | MidiNetworkClientDisconnectConfig.idl |
Pass to MidiNetworkTransportManager.DisconnectNetworkClientAsync to disconnect a client now. Pass to MidiServiceTransportPluginConfigManager.SaveUpdate to remove the saved client, so the service doesn’t connect it the next time it starts.
| Constructor | Description |
|---|---|
MidiNetworkClientDisconnectConfig() |
Creates an empty configuration |
MidiNetworkClientDisconnectConfig(clientId) |
Creates a configuration for this client |
| Property | Description |
|---|---|
ClientId |
The GUID of the client entry to disconnect |
A client disconnected this way stays disconnected. The service doesn’t treat a disconnect someone asked for as a lost connection, so it doesn’t reconnect it automatically.
Disconnecting and forgetting are separate steps, like connecting and saving. To do both, call DisconnectNetworkClientAsync and then SaveUpdate with the same object.
