GattCharacteristic.ProtectionLevel Property

Definition

Gets or sets the desired GATT security options for over the air communication with the device.

Windows will negotiate the maximum security possible with the device as part of the pairing process, and specifying a lower level of security won’t degrade the existing security level.

public:
 property GattProtectionLevel ProtectionLevel { GattProtectionLevel get(); void set(GattProtectionLevel value); };
GattProtectionLevel ProtectionLevel();

void ProtectionLevel(GattProtectionLevel value);
public GattProtectionLevel ProtectionLevel { get; set; }
var gattProtectionLevel = gattCharacteristic.protectionLevel;
gattCharacteristic.protectionLevel = gattProtectionLevel;
Public Property ProtectionLevel As GattProtectionLevel

Property Value

The desired GATT security options for over the air communication with the device.

Windows requirements

App capabilities
bluetooth

Applies to