ObjectSecurity.Persist メソッド

定義

ObjectSecurity オブジェクトのセキュリティ記述子の情報を永続ストレージに保存するプロテクト メソッド。

オーバーロード

Persist(SafeHandle, AccessControlSections)

この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定されたセクションを、永続ストレージに保存します。 コンストラクターと persist メソッドに渡される includeSections パラメーターの値を同一にすることをお勧めします。

Persist(String, AccessControlSections)

この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定されたセクションを、永続ストレージに保存します。 コンストラクターと persist メソッドに渡される includeSections パラメーターの値を同一にすることをお勧めします。

Persist(Boolean, String, AccessControlSections)

この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定されたセクションを、永続ストレージに保存します。 コンストラクターと persist メソッドに渡される includeSections パラメーターの値を同一にすることをお勧めします。

Persist(SafeHandle, AccessControlSections)

この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定されたセクションを、永続ストレージに保存します。 コンストラクターと persist メソッドに渡される 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 列挙値の 1 つ。

注釈

オブジェクトをObjectSecurity永続化するときに、メソッドに渡されるパラメーターのincludeSections値がそのオブジェクトの作成ObjectSecurityPersist使用されるコンストラクターに渡されるパラメーターのincludeSections値と同じでない場合、永続化されたObjectSecurityオブジェクトのセクションには予測できない値が含まれる可能性があります。 たとえば、コンストラクターが の値をincludeSections使用して呼び出され、後でそのPersistオブジェクトincludeSectionsに対して 値Allが のメソッドが呼び出された場合、結果の永続化されたObjectSecurityオブジェクトには、その監査ルール、グループ、および所有者に対して予測できない値が含Accessまれます。

適用対象

Persist(String, AccessControlSections)

この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定されたセクションを、永続ストレージに保存します。 コンストラクターと persist メソッドに渡される 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 列挙値の 1 つ。

注釈

オブジェクトをObjectSecurity永続化するときに、メソッドに渡されるパラメーターのincludeSections値がそのオブジェクトの作成ObjectSecurityPersist使用されるコンストラクターに渡されるパラメーターのincludeSections値と同じでない場合、永続化されたObjectSecurityオブジェクトのセクションには予測できない値が含まれる可能性があります。 たとえば、コンストラクターが の値をincludeSections使用して呼び出され、後でそのPersistオブジェクトincludeSectionsに対して 値Allが のメソッドが呼び出された場合、結果の永続化されたObjectSecurityオブジェクトには、その監査ルール、グループ、および所有者に対して予測できない値が含Accessまれます。

適用対象

Persist(Boolean, String, AccessControlSections)

この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定されたセクションを、永続ストレージに保存します。 コンストラクターと persist メソッドに渡される 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 列挙値の 1 つ。

属性

注釈

オブジェクトをObjectSecurity永続化するときに、メソッドに渡されるパラメーターのincludeSections値がそのオブジェクトの作成ObjectSecurityPersist使用されるコンストラクターに渡されるパラメーターのincludeSections値と同じでない場合、永続化されたObjectSecurityオブジェクトのセクションには予測できない値が含まれる可能性があります。 たとえば、コンストラクターが の値をincludeSections使用して呼び出され、後でそのPersistオブジェクトincludeSectionsに対して 値Allが のメソッドが呼び出された場合、結果の永続化されたObjectSecurityオブジェクトには、その監査ルール、グループ、および所有者に対して予測できない値が含Accessまれます。

適用対象