DeviceInformationCustomPairing クラス

定義

DeviceInformation オブジェクトのカスタム ペアリングを表します。

C#
[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
継承
Object 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 プロパティを使用してセットをペアリングする」を参照してください。

適用対象

製品 バージョン
WinRT Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100