WiFiDirectServiceAdvertiser.AutoAcceptSessionConnected Ereignis
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Deprecated. Ereignis ausgelöst, wenn der Dienst automatisch eine Sitzungsanforderung akzeptiert hat. Der Ereignishandler sollte Socketverbindungen für die Endpunktpaare einrichten, die im Ereignisargumentobjekt aufgeführt sind.
// Register
event_token AutoAcceptSessionConnected(TypedEventHandler<WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs const&> const& handler) const;
// Revoke with event_token
void AutoAcceptSessionConnected(event_token const* cookie) const;
// Revoke with event_revoker
WiFiDirectServiceAdvertiser::AutoAcceptSessionConnected_revoker AutoAcceptSessionConnected(auto_revoke_t, TypedEventHandler<WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("IWiFiDirectServiceAdvertiser 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("IWiFiDirectServiceAdvertiser 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 AutoAcceptSessionConnected(TypedEventHandler<WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs const&> const& handler) const;
// Revoke with event_token
void AutoAcceptSessionConnected(event_token const* cookie) const;
// Revoke with event_revoker
WiFiDirectServiceAdvertiser::AutoAcceptSessionConnected_revoker AutoAcceptSessionConnected(auto_revoke_t, TypedEventHandler<WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs const&> const& handler) const;
public event TypedEventHandler<WiFiDirectServiceAdvertiser,WiFiDirectServiceAutoAcceptSessionConnectedEventArgs> AutoAcceptSessionConnected;
[add: Windows.Foundation.Metadata.Deprecated("IWiFiDirectServiceAdvertiser 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("IWiFiDirectServiceAdvertiser 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<WiFiDirectServiceAdvertiser,WiFiDirectServiceAutoAcceptSessionConnectedEventArgs> AutoAcceptSessionConnected;
function onAutoAcceptSessionConnected(eventArgs) { /* Your code */ }
wiFiDirectServiceAdvertiser.addEventListener("autoacceptsessionconnected", onAutoAcceptSessionConnected);
wiFiDirectServiceAdvertiser.removeEventListener("autoacceptsessionconnected", onAutoAcceptSessionConnected);
- or -
wiFiDirectServiceAdvertiser.onautoacceptsessionconnected = onAutoAcceptSessionConnected;
Public Custom Event AutoAcceptSessionConnected As TypedEventHandler(Of WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs)
Ereignistyp
- Attribute