Share via


WiFiDirectServiceSessionRequest Class

Definition

Describes a Wi-Fi Direct Service session request.

public ref class WiFiDirectServiceSessionRequest sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WiFiDirectServiceSessionRequest final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WiFiDirectServiceSessionRequest : System.IDisposable
Public NotInheritable Class WiFiDirectServiceSessionRequest
Implements IDisposable
Inheritance
Object Platform::Object IInspectable WiFiDirectServiceSessionRequest
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

Your code does not instantiate this class directly. An instance of this class is inside the WiFiDirectServiceSessionRequestedEventArgs object passed to your WiFiDirectServiceAdvertiser.SessionRequested event handler.

Properties

DeviceInformation

Gets device information for the requesting device.

ProvisioningInfo

Gets information about how provisioning should be performed if the session is established.

SessionInfo

Gets the session information blob associated with this request.

Methods

Close()

Closes the session request. Your server code calls this method to reject a session request.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Applies to

See also