Play​To​Connection​Error​Event​Args Play​To​Connection​Error​Event​Args Play​To​Connection​Error​Event​Args Class


Provides information about the Error event.

public : sealed class PlayToConnectionErrorEventArgs : IPlayToConnectionErrorEventArgspublic sealed class PlayToConnectionErrorEventArgs : IPlayToConnectionErrorEventArgsPublic NotInheritable Class PlayToConnectionErrorEventArgs Implements IPlayToConnectionErrorEventArgs
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Code Code Code

Gets the error code for a Play To connection error.

public : PlayToConnectionError Code { get; }public PlayToConnectionError Code { get; }Public ReadOnly Property Code As PlayToConnectionError
PlayToConnectionError PlayToConnectionError PlayToConnectionError

The error code for a Play To connection error.



In Windows 8Windows Store app, Code is always set to DeviceError.

In Windows 8.1Windows Store app, Code is set to either DeviceError or ProtectedPlaybackFailed. This enables the app to determine if the failure is related to the media-protection status of the content. The app can continue playing the next item in the playlist or to stop. Apps can also use this new Code value to remove all protected music from the playlist.

See Also

Message Message Message

Gets the error message for a Play To connection error.

public : PlatForm::String Message { get; }public string Message { get; }Public ReadOnly Property Message As string
PlatForm::String string string

The error message for a Play To connection error.

See Also

See Also