DeviceInformationCustomPairing.PairAsync 方法

定义

重载

PairAsync(DevicePairingKinds)

尝试配对设备。

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

尝试使用最低保护级别配对设备。

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

尝试使用最低保护级别和自定义设置来配对设备。

PairAsync(DevicePairingKinds)

尝试配对设备。

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)

参数

pairingKindsSupported
DevicePairingKinds

DeviceInformation 对象支持的不同配对类型。

返回

配对操作的结果。

属性

另请参阅

适用于

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

尝试使用最低保护级别配对设备。

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)

参数

pairingKindsSupported
DevicePairingKinds

DeviceInformation 对象支持的不同配对类型。

minProtectionLevel
DevicePairingProtectionLevel

DeviceInformation 对象为了配对而需要的最低保护级别。

返回

配对操作的结果。

属性

另请参阅

适用于

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

尝试使用最低保护级别和自定义设置来配对设备。

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)

参数

pairingKindsSupported
DevicePairingKinds

DeviceInformation 对象支持的不同配对类型。

minProtectionLevel
DevicePairingProtectionLevel

DeviceInformation 对象为了配对而需要的最低保护级别。

devicePairingSettings
IDevicePairingSettings

自定义设备配对设置。

返回

配对操作的结果。

属性

另请参阅

适用于