共用方式為


PlayToSourceRequest.SetSource(PlayToSource) 方法

定義

設定要連線到播放至目標的來源元素。

public:
 virtual void SetSource(PlayToSource ^ value) = SetSource;
/// [Windows.Foundation.Metadata.Deprecated("PlayToSourceRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
void SetSource(PlayToSource const& value);
/// [Windows.Foundation.Metadata.Deprecated("PlayToSourceRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
void SetSource(PlayToSource const& value);
[Windows.Foundation.Metadata.Deprecated("PlayToSourceRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public void SetSource(PlayToSource value);
[Windows.Foundation.Metadata.Deprecated("PlayToSourceRequest may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public void SetSource(PlayToSource value);
function setSource(value)
Public Sub SetSource (value As PlayToSource)

參數

value
PlayToSource

要連線到播放目標的來源專案。

屬性

備註

PlayToSourceRequest 類別代表將來源媒體串流至播放目標的使用者要求。 您可以使用 PlayToSourceRequestedEventArgs 類別的 SourceRequest 屬性,在 SourceRequested 事件期間將媒體從您的應用程式傳遞至 Play To。

適用於

另請參閱