NOW LOADING

MidiRtpClientConnectResponse


Result of a request to connect an RTP-MIDI client
Namespace Windows.Devices.Midi2.Transports.Rtp
Type Name MidiRtpClientConnectResponse
Type WinRT Runtime Class
IDL MidiRtpClientConnectResponse.idl

Returned by MidiRtpTransportManager.ConnectRtpClientAsync and ReconnectRtpClientAsync.

Properties

Property Description
ClientId The GUID of the client entry the request was about
Success True if the service took the request
ErrorCode A MidiRtpClientConnectErrorCode when Success is false
ErrorMessage A description of the failure that people can read

Remarks

Check Success first. When it’s false, ErrorCode tells your code why, and ErrorMessage is a description you can show to people.

Success means the service has the entry, not that the remote device answered. Connecting happens in the background. To follow it, read EntryState on the entry from GetConfiguredClients(), or wait for its endpoint to appear.

Didn't find what you were looking for?

Windows MIDI Services is an open source project with all source available on GitHub. We have a great community on Discord as well. Between GitHub and Discord, you should find the information you are looking for.