PlayToConnectionErrorEventArgs.Code Property

Definition

Gets the error code for a Play To connection error.

public:
 property PlayToConnectionError Code { PlayToConnectionError get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToConnectionErrorEventArgs may be altered or unavailable for releases after Windows 10. Instead, use CastingConnectionErrorOccurredEventArgs.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
PlayToConnectionError Code();
/// [get: Windows.Foundation.Metadata.Deprecated("PlayToConnectionErrorEventArgs may be altered or unavailable for releases after Windows 10. Instead, use CastingConnectionErrorOccurredEventArgs.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
PlayToConnectionError Code();
public PlayToConnectionError Code { [Windows.Foundation.Metadata.Deprecated("PlayToConnectionErrorEventArgs may be altered or unavailable for releases after Windows 10. Instead, use CastingConnectionErrorOccurredEventArgs.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public PlayToConnectionError Code { [Windows.Foundation.Metadata.Deprecated("PlayToConnectionErrorEventArgs may be altered or unavailable for releases after Windows 10. Instead, use CastingConnectionErrorOccurredEventArgs.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var playToConnectionError = playToConnectionErrorEventArgs.code;
Public ReadOnly Property Code As PlayToConnectionError

Property Value

The error code for a Play To connection error.

Attributes

Remarks

In Windows 8UWP apps, Code is always set to DeviceError.

In Windows 8.1UWP apps, 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.

Applies to

See also