DeviceInformationCustomPairing Kelas

Definisi

Mewakili pemasangan kustom untuk objek 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
Warisan
Object Platform::Object IInspectable DeviceInformationCustomPairing
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows 10 (diperkenalkan dalam 10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v2.0)

Metode

AddPairingSetMember(DeviceInformation)

Tambahkan anggota set pemasangan (untuk printer gaya BLUETOOTH LE dan IPP). Untuk informasi selengkapnya, dan contoh kode, lihat Memasangkan set dengan properti DeviceInformationPairing.Custom.

PairAsync(DevicePairingKinds)

Mencoba memasangkan perangkat.

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel)

Mencoba memasangkan perangkat menggunakan tingkat perlindungan minimum.

PairAsync(DevicePairingKinds, DevicePairingProtectionLevel, IDevicePairingSettings)

Mencoba memasangkan perangkat menggunakan tingkat perlindungan minimum dan pengaturan kustom.

Acara

PairingRequested

Dimunculkan saat tindakan pemasangan diminta.

PairingSetMembersRequested

Dimunculkan ketika anggota set pemasangan telah diminta. Untuk informasi selengkapnya, dan contoh kode, lihat Memasangkan set dengan properti DeviceInformationPairing.Custom.

Berlaku untuk