PlayToConnection.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)]
// 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) 

事件类型

属性

适用于

另请参阅