Share via


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)

ペアリング セットのメンバーを追加します (Bluetooth LE および IPP スタイル プリンターの場合)。 詳細とコード例については、「 DeviceInformationPairing.Custom プロパティを使用してセットをペアリングする」を参照してください。

PairAsync(DevicePairingKinds)

デバイスのペアリングを試みます。

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

最小保護レベルを使用してデバイスのペアリングを試みます。

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

最小保護レベルとカスタム設定を使用してデバイスのペアリングを試みます。

イベント

PairingRequested

ペアリング アクションが要求されたときに発生します。

PairingSetMembersRequested

ペアリング セットのメンバーが要求されたときに発生します。 詳細とコード例については、「 DeviceInformationPairing.Custom プロパティを使用してセットをペアリングする」を参照してください。

適用対象