NativeObjectSecurity.Persist メソッド

定義

この NativeObjectSecurity オブジェクトに関連付けられているセキュリティ記述子の指定されたセクションを永続的ストレージに保存します。

オーバーロード

名前 説明
Persist(SafeHandle, AccessControlSections)

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

Persist(String, AccessControlSections)

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

Persist(SafeHandle, AccessControlSections, Object)

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

Persist(String, AccessControlSections, Object)

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

Persist(SafeHandle, AccessControlSections)

ソース:
NativeObjectSecurity.cs

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

protected:
 override void Persist(System::Runtime::InteropServices::SafeHandle ^ handle, System::Security::AccessControl::AccessControlSections includeSections);
protected override sealed void Persist(System.Runtime.InteropServices.SafeHandle handle, System.Security.AccessControl.AccessControlSections includeSections);
override this.Persist : System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections -> unit
Protected Overrides NotOverridable Sub Persist (handle As SafeHandle, includeSections As AccessControlSections)

パラメーター

handle
SafeHandle

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトのハンドル。

includeSections
AccessControlSections

保存するセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定する AccessControlSections 列挙値の 1 つ。

例外

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトは、ディレクトリまたはファイルであり、そのディレクトリまたはファイルが見つかりませんでした。

注釈

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

適用対象

Persist(String, AccessControlSections)

ソース:
NativeObjectSecurity.cs

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

protected:
 override void Persist(System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
protected override sealed void Persist(string name, System.Security.AccessControl.AccessControlSections includeSections);
override this.Persist : string * System.Security.AccessControl.AccessControlSections -> unit
Protected Overrides NotOverridable Sub Persist (name As String, includeSections As AccessControlSections)

パラメーター

name
String

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの名前。

includeSections
AccessControlSections

保存するセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定する AccessControlSections 列挙値の 1 つ。

例外

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトは、ディレクトリまたはファイルであり、そのディレクトリまたはファイルが見つかりませんでした。

注釈

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

適用対象

Persist(SafeHandle, AccessControlSections, Object)

ソース:
NativeObjectSecurity.cs

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

protected:
 void Persist(System::Runtime::InteropServices::SafeHandle ^ handle, System::Security::AccessControl::AccessControlSections includeSections, System::Object ^ exceptionContext);
protected void Persist(System.Runtime.InteropServices.SafeHandle handle, System.Security.AccessControl.AccessControlSections includeSections, object? exceptionContext);
protected void Persist(System.Runtime.InteropServices.SafeHandle handle, System.Security.AccessControl.AccessControlSections includeSections, object exceptionContext);
override this.Persist : System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections * obj -> unit
Protected Sub Persist (handle As SafeHandle, includeSections As AccessControlSections, exceptionContext As Object)

パラメーター

handle
SafeHandle

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトのハンドル。

includeSections
AccessControlSections

保存するセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定する AccessControlSections 列挙値の 1 つ。

exceptionContext
Object

例外のソースまたは宛先に関するコンテキスト情報を含むオブジェクト。

例外

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトは、ディレクトリまたはファイルであり、そのディレクトリまたはファイルが見つかりませんでした。

注釈

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

適用対象

Persist(String, AccessControlSections, Object)

ソース:
NativeObjectSecurity.cs

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

protected:
 void Persist(System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections, System::Object ^ exceptionContext);
protected void Persist(string name, System.Security.AccessControl.AccessControlSections includeSections, object? exceptionContext);
protected void Persist(string name, System.Security.AccessControl.AccessControlSections includeSections, object exceptionContext);
override this.Persist : string * System.Security.AccessControl.AccessControlSections * obj -> unit
Protected Sub Persist (name As String, includeSections As AccessControlSections, exceptionContext As Object)

パラメーター

name
String

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの名前。

includeSections
AccessControlSections

保存するセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定する AccessControlSections 列挙値の 1 つ。

exceptionContext
Object

例外のソースまたは宛先に関するコンテキスト情報を含むオブジェクト。

例外

この NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトは、ディレクトリまたはファイルであり、そのディレクトリまたはファイルが見つかりませんでした。

注釈

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

適用対象