DataProtectionPermissionAttribute.ProtectMemory 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示是否可以使用 ProtectedMemory 类加密内存。
public:
property bool ProtectMemory { bool get(); void set(bool value); };
public bool ProtectMemory { get; set; }
member this.ProtectMemory : bool with get, set
Public Property ProtectMemory As Boolean
属性值
true 如果内存可以加密,则为否则,为 false.
注解
如果值为,falseSecurityException则调用方法时ProtectedMemory.Protect发生。