DeviceInformationCustomPairing.PairAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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)
- PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)
適用於
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)
- PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)
適用於
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
自訂裝置配對設定。
傳回
配對動作的結果。
- 屬性