Share via


WiFiDirectService.SessionDeferred Event

Definition

Event raised when a session request has been deferred. Note that this does not mean that the request has failed or been denied. It is a notification that the server is performing a long operation, such as waiting for a user to enter a PIN. The seeker that receives this message should begin a 120-second wait before it times out the session request, to give the server time to complete its operation. The event arguments include a buffer supplied by the server in the deferral notification with additional information.

// 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;
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) 

Event Type

Applies to