NDClient.ReRegistrationNeeded 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
通知接聽程式,應用程式應該呼叫 ReRegistrationAsync 方法來開始重新註冊。
// Register
event_token ReRegistrationNeeded(TypedEventHandler<NDClient, IInspectable const&> const& handler) const;
// Revoke with event_token
void ReRegistrationNeeded(event_token const* cookie) const;
// Revoke with event_revoker
NDClient::ReRegistrationNeeded_revoker ReRegistrationNeeded(auto_revoke_t, TypedEventHandler<NDClient, IInspectable const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("INDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("INDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
// Register
event_token ReRegistrationNeeded(TypedEventHandler<NDClient, IInspectable const&> const& handler) const;
// Revoke with event_token
void ReRegistrationNeeded(event_token const* cookie) const;
// Revoke with event_revoker
NDClient::ReRegistrationNeeded_revoker ReRegistrationNeeded(auto_revoke_t, TypedEventHandler<NDClient, IInspectable const&> const& handler) const;
public event TypedEventHandler<NDClient,object> ReRegistrationNeeded;
[add: Windows.Foundation.Metadata.Deprecated("INDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("INDClient is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 196608, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<NDClient,object> ReRegistrationNeeded;
function onReRegistrationNeeded(eventArgs) { /* Your code */ }
nDClient.addEventListener("reregistrationneeded", onReRegistrationNeeded);
nDClient.removeEventListener("reregistrationneeded", onReRegistrationNeeded);
- or -
nDClient.onreregistrationneeded = onReRegistrationNeeded;
Public Custom Event ReRegistrationNeeded As TypedEventHandler(Of NDClient, Object)
事件類型
TypedEventHandler<NDClient,IInspectable>
- 屬性
備註
PlayReady 網路裝置 (PRND) 通訊協定需要用戶端接收者每隔 48 小時重新向傳輸器註冊。 此事件會通知接聽程式,因為接收者已成功向傳輸器註冊,所以已通過 47.5 小時。 這可讓應用程式有機會在會話到期之前呼叫 ReRegistrationAsync 方法。