WiFiDirectServiceRemotePortAddedEventArgs 类

定义

引发 WiFiDirectServiceSession.RemotePortAdded 事件时返回。 事件处理程序应使用此信息与新端口建立新的套接字连接。

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

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 中引入)

注解

代码不会直接实例化此类。 实例作为参数传递给 WiFiDirectServiceSession.RemotePortAdded 事件处理程序。

属性

EndpointPairs

获取与新远程端口关联的终结点对。

Protocol

获取用于与新远程端口通信的协议。

适用于