Delen via


WiFiDirectConnectionParameters Class

Definition

Used by an app to specify the connection parameters for a Wi-Fi Direct connect/pairing operation.

Sample applications that use this class include the Wi-Fi Direct sample.

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

Version history

Windows version SDK version Value added
1511 10586 GetDevicePairingKinds
1511 10586 PreferenceOrderedConfigurationMethods
1511 10586 PreferredPairingProcedure

Constructors

WiFiDirectConnectionParameters()

Creates a new WiFiDirectConnectionParameters object.

Properties

GroupOwnerIntent

The group owner intent value used for group owner negotiation in a Wi-Fi Direct connect/pairing operation.

PreferenceOrderedConfigurationMethods

Gets a list of supported configuration methods, in order of preference.

PreferredPairingProcedure

Gets or sets a value specifying a device's preferred pairing procedure.

Methods

GetDevicePairingKinds(WiFiDirectConfigurationMethod)

Gets a list of the DevicePairingKinds supporting the given configuration method.

Applies to

See also