共用方式為


PlayToConnectionErrorEventArgs.Code 屬性

定義

取得 Play To 連線錯誤的錯誤碼。

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

屬性值

Play To 連線錯誤的錯誤碼。

屬性

備註

在 Windows 8UWP 應用程式中,Code 一律會設定為 DeviceError

在 Windows 8.1UWP 應用程式中,Code 會設定為DeviceErrorProtectedPlaybackFailed。 這可讓應用程式判斷失敗是否與內容的媒體保護狀態有關。 應用程式可以繼續播放播放清單中的下一個專案,或停止。 應用程式也可以使用這個新的 Code 值,從播放清單中移除所有受保護的音樂。

適用於

另請參閱