Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GattCharacteristic.ProtectionLevel | protectionLevel property

Applies to Windows and Windows Phone

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.

Syntax


var protectionLevel = gattCharacteristic.protectionLevel;
gattCharacteristic.protectionLevel = protectionLevel;

Property value

Type: GattProtectionLevel

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

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Bluetooth.GenericAttributeProfile
Windows::Devices::Bluetooth::GenericAttributeProfile [C++]

Metadata

Windows.winmd

See also

GattCharacteristic

 

 

Show:
© 2014 Microsoft