WiFiDirectConnectionRequest Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Wi-Fi Direct connection request received by a WiFiDirectConnectionListener.
public ref class WiFiDirectConnectionRequest sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WiFiDirectConnectionRequest final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WiFiDirectConnectionRequest : System.IDisposable
Public NotInheritable Class WiFiDirectConnectionRequest
Implements IDisposable
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
A WiFiDirectConnectionRequest instance is retrieved by the GetConnectionRequest method on the WiFiDirectConnectionRequestedEventArgs object when the ConnectionRequested event occurs on a WiFiDirectConnectionListener.
Retrieve information about the requesting device using DeviceInformation.
The Close method releases all unmanaged resources associated with the WiFiDirectConnectionRequest object.
Properties
DeviceInformation |
Gets device information for the endpoint making the Wi-Fi Direct connection request. |
Methods
Close() |
Closes the WiFiDirectConnectionRequest object. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |