共用方式為


WiFiDirectConnectionRequestedEventArgs 類別

定義

public ref class WiFiDirectConnectionRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WiFiDirectConnectionRequestedEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WiFiDirectConnectionRequestedEventArgs
Public NotInheritable Class WiFiDirectConnectionRequestedEventArgs
繼承
Object Platform::Object IInspectable WiFiDirectConnectionRequestedEventArgs
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

您的程式碼不會具現化此類別。 相反地,當 ConnectionRequested 事件發生于 WiFiDirectConnectionListener 時,就會建立 WiFiDirectConnectionRequestedEventArgs實例。

並非所有WiFiDirectDevice屬性都會在WiFiDirectConnectionListenerConnectionRequested事件上公開。 公開的屬性包括:

  • 裝置易記名稱
  • 裝置類別
  • 模型識別碼
  • 資訊元素

方法

GetConnectionRequest()

擷取WiFiDirectConnectionListenerConnectionRequested事件上收到的WiFiDirectConnectionRequest

適用於

另請參閱