Partager via


PlayToConnection.Transferred Événement

Définition

Se produit lorsque la connexion Lire à est transférée à la source de lecture suivante.

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

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

// Revoke with event_revoker
PlayToConnection::Transferred_revoker Transferred(auto_revoke_t, TypedEventHandler<PlayToConnection, PlayToConnectionTransferredEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PlayToConnection may be altered or unavailable for releases after Windows 10. Instead, use CastingConnection.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PlayToConnection may be altered or unavailable for releases after Windows 10. Instead, use CastingConnection.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
// Register
event_token Transferred(TypedEventHandler<PlayToConnection, PlayToConnectionTransferredEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PlayToConnection::Transferred_revoker Transferred(auto_revoke_t, TypedEventHandler<PlayToConnection, PlayToConnectionTransferredEventArgs const&> const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("PlayToConnection may be altered or unavailable for releases after Windows 10. Instead, use CastingConnection.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("PlayToConnection may be altered or unavailable for releases after Windows 10. Instead, use CastingConnection.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public event TypedEventHandler<PlayToConnection,PlayToConnectionTransferredEventArgs> Transferred;
[add: Windows.Foundation.Metadata.Deprecated("PlayToConnection may be altered or unavailable for releases after Windows 10. Instead, use CastingConnection.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PlayToConnection may be altered or unavailable for releases after Windows 10. Instead, use CastingConnection.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PlayToConnection,PlayToConnectionTransferredEventArgs> Transferred;
function onTransferred(eventArgs) { /* Your code */ }
playToConnection.addEventListener("transferred", onTransferred);
playToConnection.removeEventListener("transferred", onTransferred);
- or -
playToConnection.ontransferred = onTransferred;
Public Custom Event Transferred As TypedEventHandler(Of PlayToConnection, PlayToConnectionTransferredEventArgs) 

Type d'événement

Attributs

S’applique à

Voir aussi