语言

ServiceContractAttribute.HasProtectionLevel 属性

定义

获取一个值,该值指示是否对成员分配保护级别。

public:
 property bool HasProtectionLevel { bool get(); };
public bool HasProtectionLevel { get; }
member this.HasProtectionLevel : bool
Public ReadOnly Property HasProtectionLevel As Boolean

属性值

true如果属性不是,则ProtectionLevel为 ;否则为 None。false 默认值为 false。

注解

该 HasProtectionLevel 属性指示是否为协定设置了保护级别值 false 。

适用于