GattCharacteristic.ProtectionLevel Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|