PlayToConnectionErrorEventArgs PlayToConnectionErrorEventArgs PlayToConnectionErrorEventArgs PlayToConnectionErrorEventArgs Class

Provides information about the Error event.

Syntax

Declaration

public sealed class PlayToConnectionErrorEventArgspublic sealed class PlayToConnectionErrorEventArgsPublic NotInheritable Class PlayToConnectionErrorEventArgs

Properties summary

Gets the error code for a Play To connection error.

Gets the error message for a Play To connection error.

Properties

  • Code
    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

    Property Value

    Remarks

    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.

  • Message
    Message
    Message
    Message

    Gets the error message for a Play To connection error.

    public string Message { get; }public string Message { get; }Public ReadOnly Property Message As string

    Property Value

    • string
      string
      string
      string

      The error message for a Play To connection error.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DeprecatedAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Media.PlayTo.dll