ObjectSecurity<T>.Persist 方法 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将与此 ObjectSecurity`1 对象关联的安全描述符的指定部分保存到永久性存储。
重载
| Persist(SafeHandle) | 使用指定句柄将与此 ObjectSecurity`1 对象关联的安全描述符保存到永久性存储。 | 
| Persist(String) | 使用指定名称将与此 ObjectSecurity`1 对象关联的安全描述符保存到永久性存储。 | 
Persist(SafeHandle)
使用指定句柄将与此 ObjectSecurity`1 对象关联的安全描述符保存到永久性存储。
protected public:
 void Persist(System::Runtime::InteropServices::SafeHandle ^ handle);protected internal void Persist (System.Runtime.InteropServices.SafeHandle handle);override this.Persist : System.Runtime.InteropServices.SafeHandle -> unitProtected Friend Sub Persist (handle As SafeHandle)参数
- handle
- SafeHandle
与此 ObjectSecurity`1 对象关联的可保护对象的句柄。
适用于
Persist(String)
使用指定名称将与此 ObjectSecurity`1 对象关联的安全描述符保存到永久性存储。
protected public:
 void Persist(System::String ^ name);protected internal void Persist (string name);override this.Persist : string -> unitProtected Friend Sub Persist (name As String)参数
- name
- String
与此 ObjectSecurity`1 对象关联的可保护对象的名称。