共用方式為


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

自訂裝置配對設定。

傳回

配對動作的結果。

屬性

另請參閱

適用於