NOW LOADING

MidiRtpHostUpdateResponse


Result of a request to stop or start an RTP-MIDI host
Namespace Windows.Devices.Midi2.Transports.Rtp
Type Name MidiRtpHostUpdateResponse
Type WinRT Runtime Class
IDL MidiRtpHostUpdateResponse.idl

Returned by MidiRtpTransportManager.StopRtpHostAsync and StartRtpHostAsync.

Properties

Property Description
HostId The GUID of the host the request was about
Success True if the service took the request
ErrorCode A MidiRtpHostUpdateErrorCode 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.

A host starts in the background, so Success from StartRtpHostAsync doesn’t mean it’s running yet. Check HasStarted on its MidiRtpConfiguredHost.

Stopping and starting only change the running service. A saved host starts again the next time the service starts, even if it was stopped.

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.