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 物件相關聯之安全物件的名稱。

適用於