WiFiDirectServiceRemotePortAddedEventArgs
WiFiDirectServiceRemotePortAddedEventArgs
WiFiDirectServiceRemotePortAddedEventArgs
WiFiDirectServiceRemotePortAddedEventArgs
Class
Definition
Returned when a WiFiDirectServiceSession.RemotePortAdded event is raised. Your event handler should use this information to establish new socket connections to the new port.
public : sealed class WiFiDirectServiceRemotePortAddedEventArgs : IWiFiDirectServiceRemotePortAddedEventArgspublic sealed class WiFiDirectServiceRemotePortAddedEventArgs : IWiFiDirectServiceRemotePortAddedEventArgsPublic NotInheritable Class WiFiDirectServiceRemotePortAddedEventArgs Implements IWiFiDirectServiceRemotePortAddedEventArgs// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Your code does not instantiate this class directly. An instance is passed as an argument to your WiFiDirectServiceSession.RemotePortAdded event handler.
Properties
EndpointPairs EndpointPairs EndpointPairs EndpointPairs
Gets the endpoint pairs associated with the new remote port.
public : IVectorView<EndpointPair> EndpointPairs { get; }public IReadOnlyList<EndpointPair> EndpointPairs { get; }Public ReadOnly Property EndpointPairs As IReadOnlyList<EndpointPair>// You can use this property in JavaScript.
- Value
- IVectorView<EndpointPair> IReadOnlyList<EndpointPair> IReadOnlyList<EndpointPair> IReadOnlyList<EndpointPair>
New endpoint pairs.
Protocol Protocol Protocol Protocol
Gets the protocol used to communicate with the new remote port.
public : WiFiDirectServiceIPProtocol Protocol { get; }public WiFiDirectServiceIPProtocol Protocol { get; }Public ReadOnly Property Protocol As WiFiDirectServiceIPProtocol// You can use this property in JavaScript.
- Value
- WiFiDirectServiceIPProtocol WiFiDirectServiceIPProtocol WiFiDirectServiceIPProtocol WiFiDirectServiceIPProtocol
An enumeration value corresponding to the IP protocol to use for the new remote port.