DeviceInformationCustomPairing 類別

定義

表示 DeviceInformation 物件的自定義配對。

public ref class DeviceInformationCustomPairing sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DeviceInformationCustomPairing final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DeviceInformationCustomPairing
Public NotInheritable Class DeviceInformationCustomPairing
繼承
Object Platform::Object IInspectable DeviceInformationCustomPairing
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

方法

AddPairingSetMember(DeviceInformation)

為藍牙 LE 和 IPP 樣式印表機新增配對集 (的成員) 。 如需詳細資訊和程式代碼範例,請參閱 將集合與 DeviceInformationPairing.Custom 屬性配對

PairAsync(DevicePairingKinds)

嘗試配對裝置。

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

嘗試使用最低保護等級來配對裝置。

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

嘗試使用最低保護層級和自定義設定來配對裝置。

事件

PairingRequested

要求配對動作時引發。

PairingSetMembersRequested

要求配對集的成員 () 時引發。 如需詳細資訊和程式代碼範例,請參閱 將集合與 DeviceInformationPairing.Custom 屬性配對

適用於