Share via


ObjectSecurity<T>.Persist 方法

定义

将与此 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 -> unit
Protected 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 -> unit
Protected Friend Sub Persist (name As String)

参数

name
String

与此 ObjectSecurity`1 对象关联的可保护对象的名称。

适用于