Dela via


DeviceInformationCustomPairing.PairAsync Method

Definition

Overloads

PairAsync(DevicePairingKinds)

Attempts to pair the device.

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

Attempts to pair a device using a minimum protection level.

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

Attempts to pair a device using a minimum protection level and custom settings.

PairAsync(DevicePairingKinds)

Attempts to pair the device.

public:
 virtual IAsyncOperation<DevicePairingResult ^> ^ PairAsync(DevicePairingKinds pairingKindsSupported) = PairAsync;
/// [Windows.Foundation.Metadata.Overload("PairAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DevicePairingResult> PairAsync(DevicePairingKinds const& pairingKindsSupported);
[Windows.Foundation.Metadata.Overload("PairAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DevicePairingResult> PairAsync(DevicePairingKinds pairingKindsSupported);
function pairAsync(pairingKindsSupported)
Public Function PairAsync (pairingKindsSupported As DevicePairingKinds) As IAsyncOperation(Of DevicePairingResult)

Parameters

pairingKindsSupported
DevicePairingKinds

The different pairing kinds supported by this DeviceInformation object.

Returns

The result of the pairing action.

Attributes

See also

Applies to

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

Attempts to pair a device using a minimum protection level.

public:
 virtual IAsyncOperation<DevicePairingResult ^> ^ PairAsync(DevicePairingKinds pairingKindsSupported, DevicePairingProtectionLevel minProtectionLevel) = PairAsync;
/// [Windows.Foundation.Metadata.Overload("PairWithProtectionLevelAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DevicePairingResult> PairAsync(DevicePairingKinds const& pairingKindsSupported, DevicePairingProtectionLevel const& minProtectionLevel);
[Windows.Foundation.Metadata.Overload("PairWithProtectionLevelAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DevicePairingResult> PairAsync(DevicePairingKinds pairingKindsSupported, DevicePairingProtectionLevel minProtectionLevel);
function pairAsync(pairingKindsSupported, minProtectionLevel)
Public Function PairAsync (pairingKindsSupported As DevicePairingKinds, minProtectionLevel As DevicePairingProtectionLevel) As IAsyncOperation(Of DevicePairingResult)

Parameters

pairingKindsSupported
DevicePairingKinds

The different pairing kinds supported by this DeviceInformation object.

minProtectionLevel
DevicePairingProtectionLevel

The minimum protection level this DeviceInformation object requires in order to pair.

Returns

The result of the pairing action.

Attributes

See also

Applies to

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

Attempts to pair a device using a minimum protection level and custom settings.

public:
 virtual IAsyncOperation<DevicePairingResult ^> ^ PairAsync(DevicePairingKinds pairingKindsSupported, DevicePairingProtectionLevel minProtectionLevel, IDevicePairingSettings ^ devicePairingSettings) = PairAsync;
/// [Windows.Foundation.Metadata.Overload("PairWithProtectionLevelAndSettingsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<DevicePairingResult> PairAsync(DevicePairingKinds const& pairingKindsSupported, DevicePairingProtectionLevel const& minProtectionLevel, IDevicePairingSettings const& devicePairingSettings);
[Windows.Foundation.Metadata.Overload("PairWithProtectionLevelAndSettingsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<DevicePairingResult> PairAsync(DevicePairingKinds pairingKindsSupported, DevicePairingProtectionLevel minProtectionLevel, IDevicePairingSettings devicePairingSettings);
function pairAsync(pairingKindsSupported, minProtectionLevel, devicePairingSettings)
Public Function PairAsync (pairingKindsSupported As DevicePairingKinds, minProtectionLevel As DevicePairingProtectionLevel, devicePairingSettings As IDevicePairingSettings) As IAsyncOperation(Of DevicePairingResult)

Parameters

pairingKindsSupported
DevicePairingKinds

The different pairing kinds supported by this DeviceInformation object.

minProtectionLevel
DevicePairingProtectionLevel

The minimum protection level this DeviceInformation object requires in order to pair.

devicePairingSettings
IDevicePairingSettings

The custom device pairing settings.

Returns

The result of the pairing action.

Attributes

See also

Applies to