Linguaggio

WiFiDirectService.SessionDeferred Evento

Definizione

Deprecated. Evento generato quando è stata posticipata una richiesta di sessione. Si noti che questo non significa che la richiesta non è riuscita o è stata negata. Si tratta di una notifica che il server sta eseguendo un'operazione lunga, ad esempio in attesa che un utente immetta un PIN. Il cercatore che riceve questo messaggio deve iniziare un'attesa di 120 secondi prima che si verifichi il timeout della richiesta di sessione, per assegnare al server il tempo necessario per completare l'operazione. Gli argomenti dell'evento includono un buffer fornito dal server nella notifica di rinvio con informazioni aggiuntive.

// Register
event_token SessionDeferred(TypedEventHandler<WiFiDirectService, WiFiDirectServiceSessionDeferredEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WiFiDirectService::SessionDeferred_revoker SessionDeferred(auto_revoke_t, TypedEventHandler<WiFiDirectService, WiFiDirectServiceSessionDeferredEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("IWiFiDirectService is deprecated and might not work on all platforms. For more info, see Microsoft Learn.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 1245184, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("IWiFiDirectService is deprecated and might not work on all platforms. For more info, see Microsoft Learn.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 1245184, "Windows.Foundation.UniversalApiContract")]
// Register
event_token SessionDeferred(TypedEventHandler<WiFiDirectService, WiFiDirectServiceSessionDeferredEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WiFiDirectService::SessionDeferred_revoker SessionDeferred(auto_revoke_t, TypedEventHandler<WiFiDirectService, WiFiDirectServiceSessionDeferredEventArgs const&> const& handler) const;
public event TypedEventHandler<WiFiDirectService,WiFiDirectServiceSessionDeferredEventArgs> SessionDeferred;
[add: Windows.Foundation.Metadata.Deprecated("IWiFiDirectService is deprecated and might not work on all platforms. For more info, see Microsoft Learn.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 1245184, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("IWiFiDirectService is deprecated and might not work on all platforms. For more info, see Microsoft Learn.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 1245184, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<WiFiDirectService,WiFiDirectServiceSessionDeferredEventArgs> SessionDeferred;
function onSessionDeferred(eventArgs) { /* Your code */ }
wiFiDirectService.addEventListener("sessiondeferred", onSessionDeferred);
wiFiDirectService.removeEventListener("sessiondeferred", onSessionDeferred);
- or -
wiFiDirectService.onsessiondeferred = onSessionDeferred;
Public Custom Event SessionDeferred As TypedEventHandler(Of WiFiDirectService, WiFiDirectServiceSessionDeferredEventArgs) 

Tipo evento

Attributi

Si applica a