共用方式為


PlayToManager.GetForCurrentView 方法

定義

取得目前檢視的 [播放到] 管理員。

public:
 static PlayToManager ^ GetForCurrentView();
/// [Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
 static PlayToManager GetForCurrentView();
/// [Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
 static PlayToManager GetForCurrentView();
[Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static PlayToManager GetForCurrentView();
[Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static PlayToManager GetForCurrentView();
function getForCurrentView()
Public Shared Function GetForCurrentView () As PlayToManager

傳回

目前檢視的 [播放到] 管理員。

屬性

備註

您可以使用目前檢視的 PlayToManager 實例來建立應用程式的 Play To 合約,並自定義哪些媒體播放至目標裝置。 您可以使用 SetSource 方法,在 SourceRequested 事件期間提供要串流的媒體。

適用於

另請參閱