共用方式為


GattProtectionLevel 列舉

定義

表示所需的安全性層級。

允許要求所需的 [安全性] 選項。

public enum class GattProtectionLevel
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class GattProtectionLevel
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum GattProtectionLevel
var value = Windows.Devices.Bluetooth.GenericAttributeProfile.GattProtectionLevel.plain
Public Enum GattProtectionLevel
繼承
GattProtectionLevel
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
bluetooth

欄位

AuthenticationRequired 1

要求驗證連結。

EncryptionAndAuthenticationRequired 3

需要加密和驗證連結。

EncryptionRequired 2

需要加密連結。

Plain 0

使用預設的保護層級。

適用於