ObjectSecurity.Persist 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
受保護的方法將此 ObjectSecurity 物件中的安全描述符資訊儲存為永久儲存。
多載
| 名稱 | Description |
|---|---|
| Persist(SafeHandle, AccessControlSections) |
將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 |
| Persist(String, AccessControlSections) |
將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 |
| Persist(Boolean, String, AccessControlSections) |
將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 |
Persist(SafeHandle, AccessControlSections)
將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 includeSections 應相同。
protected:
virtual void Persist(System::Runtime::InteropServices::SafeHandle ^ handle, System::Security::AccessControl::AccessControlSections includeSections);
protected virtual void Persist(System.Runtime.InteropServices.SafeHandle handle, System.Security.AccessControl.AccessControlSections includeSections);
abstract member Persist : System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections -> unit
Protected Overridable Sub Persist (handle As SafeHandle, includeSections As AccessControlSections)
參數
- handle
- SafeHandle
用來擷取持久化資訊的帳柄。
- includeSections
- AccessControlSections
列 AccessControlSections 舉值之一,指定安全描述符中要儲存的可安全物件的區段(存取規則、稽核規則、擁有者、主要群組)。
備註
在持久ObjectSecurity化物件時,如果傳遞給includeSections方法的參數值Persist與includeSections傳給建立該ObjectSecurity物件的建構子的參數值不完全相同,持久ObjectSecurity化物件的某些區段可能包含不可預測的值。 例如,若一個建構子被呼叫為 includeSectionsAccess,之後 Persist 在該物件上呼叫一個方法為 includeSectionsAll,所得的持久 ObjectSecurity 物件將包含其審計規則、群組與擁有者的不可預測值。
適用於
Persist(String, AccessControlSections)
將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 includeSections 應相同。
protected:
virtual void Persist(System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
protected virtual void Persist(string name, System.Security.AccessControl.AccessControlSections includeSections);
abstract member Persist : string * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : string * System.Security.AccessControl.AccessControlSections -> unit
Protected Overridable Sub Persist (name As String, includeSections As AccessControlSections)
參數
- name
- String
用來擷取持久化資訊的名稱。
- includeSections
- AccessControlSections
列 AccessControlSections 舉值之一,指定安全描述符中要儲存的可安全物件的區段(存取規則、稽核規則、擁有者、主要群組)。
備註
在持久ObjectSecurity化物件時,如果傳遞給includeSections方法的參數值Persist與includeSections傳給建立該ObjectSecurity物件的建構子的參數值不完全相同,持久ObjectSecurity化物件的某些區段可能包含不可預測的值。 例如,若一個建構子被呼叫為 includeSectionsAccess,之後 Persist 在該物件上呼叫一個方法為 includeSectionsAll,所得的持久 ObjectSecurity 物件將包含其審計規則、群組與擁有者的不可預測值。
適用於
Persist(Boolean, String, AccessControlSections)
將與此 ObjectSecurity 物件相關的安全描述符指定區段儲存為永久儲存。 我們建議傳給建構子與持久化方法的參數值 includeSections 應相同。
protected:
virtual void Persist(bool enableOwnershipPrivilege, System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
protected virtual void Persist(bool enableOwnershipPrivilege, string name, System.Security.AccessControl.AccessControlSections includeSections);
[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
protected virtual void Persist(bool enableOwnershipPrivilege, string name, System.Security.AccessControl.AccessControlSections includeSections);
abstract member Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
[<System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions>]
abstract member Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
override this.Persist : bool * string * System.Security.AccessControl.AccessControlSections -> unit
Protected Overridable Sub Persist (enableOwnershipPrivilege As Boolean, name As String, includeSections As AccessControlSections)
參數
- enableOwnershipPrivilege
- Boolean
true 以啟用允許呼叫者取得物件所有權的特權。
- name
- String
用來擷取持久化資訊的名稱。
- includeSections
- AccessControlSections
列 AccessControlSections 舉值之一,指定安全描述符中要儲存的可安全物件的區段(存取規則、稽核規則、擁有者、主要群組)。
- 屬性
備註
在持久ObjectSecurity化物件時,如果傳遞給includeSections方法的參數值Persist與includeSections傳給建立該ObjectSecurity物件的建構子的參數值不完全相同,持久ObjectSecurity化物件的某些區段可能包含不可預測的值。 例如,若一個建構子被呼叫為 includeSectionsAccess,之後 Persist 在該物件上呼叫一個方法為 includeSectionsAll,所得的持久 ObjectSecurity 物件將包含其審計規則、群組與擁有者的不可預測值。