NativeObjectSecurity コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
NativeObjectSecurity クラスの新しいインスタンスを初期化します。
オーバーロード
NativeObjectSecurity(Boolean, ResourceType)
指定した値を使用して、 NativeObjectSecurity クラスの新しいインスタンスを初期化します。
protected:
NativeObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType);
new System.Security.AccessControl.NativeObjectSecurity : bool * System.Security.AccessControl.ResourceType -> System.Security.AccessControl.NativeObjectSecurity
Protected Sub New (isContainer As Boolean, resourceType As ResourceType)
パラメーター
- isContainer
- Boolean
true 新しい NativeObjectSecurity オブジェクトがコンテナー オブジェクトの場合は >。
- resourceType
- ResourceType
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの種類。
適用対象
NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections)
指定した値を使用して、 NativeObjectSecurity クラスの新しいインスタンスを初期化します。 コンストラクターと永続化メソッドに渡される includeSections パラメーターの値は同じにすることをお勧めします。
protected:
NativeObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::Runtime::InteropServices::SafeHandle ^ handle, System::Security::AccessControl::AccessControlSections includeSections);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle? handle, System.Security.AccessControl.AccessControlSections includeSections);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle handle, System.Security.AccessControl.AccessControlSections includeSections);
new System.Security.AccessControl.NativeObjectSecurity : bool * System.Security.AccessControl.ResourceType * System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.NativeObjectSecurity
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, handle As SafeHandle, includeSections As AccessControlSections)
パラメーター
- isContainer
- Boolean
true 新しい NativeObjectSecurity オブジェクトがコンテナー オブジェクトの場合は >。
- resourceType
- ResourceType
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの種類。
- handle
- SafeHandle
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトのハンドル。
- includeSections
- AccessControlSections
このAccessControlSections オブジェクトに含めるセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定するNativeObjectSecurity列挙値の 1 つ。
注釈
NativeObjectSecurity オブジェクトを永続化するときに、includeSections メソッドに渡されるPersist パラメーターの値がそのincludeSections オブジェクトの作成に使用されるコンストラクターに渡されたNativeObjectSecurity パラメーターの値と同じでない場合、永続化されたNativeObjectSecurity オブジェクトのセクションに予期しない値が含まれている可能性があります。 たとえば、コンストラクターが includeSections のAccess値を使用して呼び出され、その後、Persist値が includeSections のオブジェクトに対してAll メソッドが呼び出された場合、結果として保持されるNativeObjectSecurity オブジェクトには、その監査規則、グループ、および所有者の予測できない値が含まれます。
適用対象
NativeObjectSecurity(Boolean, ResourceType, NativeObjectSecurity+ExceptionFromErrorCode, Object)
指定した値を使用して、 NativeObjectSecurity クラスの新しいインスタンスを初期化します。
protected:
NativeObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::Security::AccessControl::NativeObjectSecurity::ExceptionFromErrorCode ^ exceptionFromErrorCode, System::Object ^ exceptionContext);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext);
new System.Security.AccessControl.NativeObjectSecurity : bool * System.Security.AccessControl.ResourceType * System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode * obj -> System.Security.AccessControl.NativeObjectSecurity
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, exceptionFromErrorCode As NativeObjectSecurity.ExceptionFromErrorCode, exceptionContext As Object)
パラメーター
- isContainer
- Boolean
true 新しい NativeObjectSecurity オブジェクトがコンテナー オブジェクトの場合は >。
- resourceType
- ResourceType
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの種類。
- exceptionFromErrorCode
- NativeObjectSecurity.ExceptionFromErrorCode
カスタム例外を提供するインテグレーターによって実装されるデリゲート。
- exceptionContext
- Object
例外のソースまたは宛先に関するコンテキスト情報を含むオブジェクト。
適用対象
NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections)
指定した値を使用して、 NativeObjectSecurity クラスの新しいインスタンスを初期化します。 コンストラクターと永続化メソッドに渡される includeSections パラメーターの値は同じにすることをお勧めします。
protected:
NativeObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, string? name, System.Security.AccessControl.AccessControlSections includeSections);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, string name, System.Security.AccessControl.AccessControlSections includeSections);
new System.Security.AccessControl.NativeObjectSecurity : bool * System.Security.AccessControl.ResourceType * string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.NativeObjectSecurity
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, name As String, includeSections As AccessControlSections)
パラメーター
- isContainer
- Boolean
true 新しい NativeObjectSecurity オブジェクトがコンテナー オブジェクトの場合は >。
- resourceType
- ResourceType
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの種類。
- name
- String
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの名前。
- includeSections
- AccessControlSections
このAccessControlSections オブジェクトに含めるセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定するNativeObjectSecurity列挙値の 1 つ。
注釈
NativeObjectSecurity オブジェクトを永続化するときに、includeSections メソッドに渡されるPersist パラメーターの値がそのincludeSections オブジェクトの作成に使用されるコンストラクターに渡されたNativeObjectSecurity パラメーターの値と同じでない場合、永続化されたNativeObjectSecurity オブジェクトのセクションに予期しない値が含まれている可能性があります。 たとえば、コンストラクターが includeSections のAccess値を使用して呼び出され、その後、Persist値が includeSections のオブジェクトに対してAll メソッドが呼び出された場合、結果として保持されるNativeObjectSecurity オブジェクトには、その監査規則、グループ、および所有者の予測できない値が含まれます。
適用対象
NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)
指定した値を使用して、 NativeObjectSecurity クラスの新しいインスタンスを初期化します。 コンストラクターと永続化メソッドに渡される includeSections パラメーターの値は同じにすることをお勧めします。
protected:
NativeObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::Runtime::InteropServices::SafeHandle ^ handle, System::Security::AccessControl::AccessControlSections includeSections, System::Security::AccessControl::NativeObjectSecurity::ExceptionFromErrorCode ^ exceptionFromErrorCode, System::Object ^ exceptionContext);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle? handle, System.Security.AccessControl.AccessControlSections includeSections, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle handle, System.Security.AccessControl.AccessControlSections includeSections, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext);
new System.Security.AccessControl.NativeObjectSecurity : bool * System.Security.AccessControl.ResourceType * System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections * System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode * obj -> System.Security.AccessControl.NativeObjectSecurity
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, handle As SafeHandle, includeSections As AccessControlSections, exceptionFromErrorCode As NativeObjectSecurity.ExceptionFromErrorCode, exceptionContext As Object)
パラメーター
- isContainer
- Boolean
true 新しい NativeObjectSecurity オブジェクトがコンテナー オブジェクトの場合は >。
- resourceType
- ResourceType
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの種類。
- handle
- SafeHandle
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトのハンドル。
- includeSections
- AccessControlSections
このAccessControlSections オブジェクトに含めるセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定するNativeObjectSecurity列挙値の 1 つ。
- exceptionFromErrorCode
- NativeObjectSecurity.ExceptionFromErrorCode
カスタム例外を提供するインテグレーターによって実装されるデリゲート。
- exceptionContext
- Object
例外のソースまたは宛先に関するコンテキスト情報を含むオブジェクト。
注釈
NativeObjectSecurity オブジェクトを永続化するときに、includeSections メソッドに渡されるPersist パラメーターの値がそのincludeSections オブジェクトの作成に使用されるコンストラクターに渡されたNativeObjectSecurity パラメーターの値と同じでない場合、永続化されたNativeObjectSecurity オブジェクトのセクションに予期しない値が含まれている可能性があります。 たとえば、コンストラクターが includeSections のAccess値を使用して呼び出され、その後、Persist値が includeSections のオブジェクトに対してAll メソッドが呼び出された場合、結果として保持されるNativeObjectSecurity オブジェクトには、その監査規則、グループ、および所有者の予測できない値が含まれます。
適用対象
NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)
指定した値を使用して、 NativeObjectSecurity クラスの新しいインスタンスを初期化します。 コンストラクターと永続化メソッドに渡される includeSections パラメーターの値は同じにすることをお勧めします。
protected:
NativeObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections, System::Security::AccessControl::NativeObjectSecurity::ExceptionFromErrorCode ^ exceptionFromErrorCode, System::Object ^ exceptionContext);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, string? name, System.Security.AccessControl.AccessControlSections includeSections, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext);
protected NativeObjectSecurity(bool isContainer, System.Security.AccessControl.ResourceType resourceType, string name, System.Security.AccessControl.AccessControlSections includeSections, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext);
new System.Security.AccessControl.NativeObjectSecurity : bool * System.Security.AccessControl.ResourceType * string * System.Security.AccessControl.AccessControlSections * System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode * obj -> System.Security.AccessControl.NativeObjectSecurity
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, name As String, includeSections As AccessControlSections, exceptionFromErrorCode As NativeObjectSecurity.ExceptionFromErrorCode, exceptionContext As Object)
パラメーター
- isContainer
- Boolean
true 新しい NativeObjectSecurity オブジェクトがコンテナー オブジェクトの場合は >。
- resourceType
- ResourceType
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの種類。
- name
- String
新しい NativeObjectSecurity オブジェクトが関連付けられているセキュリティ保護可能なオブジェクトの名前。
- includeSections
- AccessControlSections
このAccessControlSections オブジェクトに含めるセキュリティ保護可能なオブジェクトのセキュリティ記述子 (アクセス規則、監査規則、所有者、プライマリ グループ) のセクションを指定するNativeObjectSecurity列挙値の 1 つ。
- exceptionFromErrorCode
- NativeObjectSecurity.ExceptionFromErrorCode
カスタム例外を提供するインテグレーターによって実装されるデリゲート。
- exceptionContext
- Object
例外のソースまたは宛先に関するコンテキスト情報を含むオブジェクト。
注釈
NativeObjectSecurity オブジェクトを永続化するときに、includeSections メソッドに渡されるPersist パラメーターの値がそのincludeSections オブジェクトの作成に使用されるコンストラクターに渡されたNativeObjectSecurity パラメーターの値と同じでない場合、永続化されたNativeObjectSecurity オブジェクトのセクションに予期しない値が含まれている可能性があります。 たとえば、コンストラクターが includeSections のAccess値を使用して呼び出され、その後、Persist値が includeSections のオブジェクトに対してAll メソッドが呼び出された場合、結果として保持されるNativeObjectSecurity オブジェクトには、その監査規則、グループ、および所有者の予測できない値が含まれます。