Share via


DeviceInformationPairing Klasse

Definition

Enthält Informationen und aktiviert die Kopplung für ein Gerät.

public ref class DeviceInformationPairing sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DeviceInformationPairing final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DeviceInformationPairing
Public NotInheritable Class DeviceInformationPairing
Vererbung
Object Platform::Object IInspectable DeviceInformationPairing
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Versionsverlauf

Windows-Version SDK-Version Wertschöpfung
1511 10586 Benutzerdefiniert
1511 10586 PairAsync(DevicePairingProtectionLevel,IDevicePairingSettings)
1511 10586 ProtectionLevel
1511 10586 TryRegisterForAllInboundPairingRequests
1511 10586 UnpairAsync
1809 17763 TryRegisterForAllInboundPairingRequestsWithProtectionLevel

Eigenschaften

CanPair

Ruft einen Wert ab, der angibt, ob das Gerät gekoppelt werden kann.

Custom

Ruft das DeviceInformationCustomPairing-Objekt ab, das für die benutzerdefinierte Kopplung erforderlich ist.

IsPaired

Ruft einen Wert ab, der angibt, ob das Gerät derzeit gekoppelt ist.

ProtectionLevel

Ruft die Schutzebene ab, die zum Koppeln des Geräts verwendet wird.

Methoden

PairAsync()

Versucht, das Gerät zu koppeln.

PairAsync(DevicePairingProtectionLevel)

Versucht, das Gerät mit einer bereitgestellten Schutzstufe zu koppeln.

PairAsync(DevicePairingProtectionLevel, IDevicePairingSettings)

Versucht, ein Geräteobjekt mit einer angegebenen Schutzstufe und benutzerdefinierten Einstellungen zu koppeln.

TryRegisterForAllInboundPairingRequests(DevicePairingKinds)

Registriert die Anwendung, um alle eingehenden Kopplungsanforderungen zu verarbeiten.

TryRegisterForAllInboundPairingRequestsWithProtectionLevel(DevicePairingKinds, DevicePairingProtectionLevel)

Registriert die Anwendung, um alle eingehenden Kopplungsanforderungen mit dem angegebenen Mindestschutzniveau zu behandeln.

UnpairAsync()

Versucht, das Gerät zu entkoppeln.

Gilt für: