Freigeben über


PlayToManager.SourceSelected Ereignis

Definition

Tritt auf, wenn ein Quellelement play to ausgewählt wurde.

/// [add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
// Register
event_token SourceSelected(TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;

// Revoke with event_token
void SourceSelected(event_token const* cookie) const;

// Revoke with event_revoker
PlayToManager::SourceSelected_revoker SourceSelected(auto_revoke_t, TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
// Register
event_token SourceSelected(TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;

// Revoke with event_token
void SourceSelected(event_token const* cookie) const;

// Revoke with event_revoker
PlayToManager::SourceSelected_revoker SourceSelected(auto_revoke_t, TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;
[add: 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))]
[remove: 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 event TypedEventHandler<PlayToManager,PlayToSourceSelectedEventArgs> SourceSelected;
[add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
[remove: 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 event TypedEventHandler<PlayToManager,PlayToSourceSelectedEventArgs> SourceSelected;
function onSourceSelected(eventArgs) { /* Your code */ }
playToManager.addEventListener("sourceselected", onSourceSelected);
playToManager.removeEventListener("sourceselected", onSourceSelected);
- or -
playToManager.onsourceselected = onSourceSelected;
Public Custom Event SourceSelected As TypedEventHandler(Of PlayToManager, PlayToSourceSelectedEventArgs) 

Ereignistyp

Attribute

Hinweise

In einer App mit Aktivierter Wiedergabe– wählt der Benutzer den Charm Geräte (oder die Benutzeroberfläche wiedergeben) aus, um Audio, Video oder Bilder von der App auf ein Zielgerät zu streamen. Das SourceSelected-Ereignis wird ausgelöst, nachdem der Benutzer ein Zielgerät ausgewählt hat. Wenn der Benutzer den Charm "Geräte" oder die Benutzeroberfläche "Wiedergeben auf" verlässt, ohne ein Zielgerät auszuwählen, wird das SourceSelected-Ereignis nicht ausgelöst.

Gilt für:

Weitere Informationen