WiFiDirectConnectionRequestedEventArgs 类

定义

WiFiDirectConnectionListener 上的 ConnectionRequested 事件提供数据。

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 事件上公开。 公开的属性包括:

  • 设备易记名称
  • 设备类别
  • 模型 ID
  • 信息元素

方法

GetConnectionRequest()

检索 WiFiDirectConnectionListenerConnectionRequested 事件上收到的 WiFiDirectConnectionRequest

适用于

另请参阅