NativeObjectSecurityとは? わかりやすく解説

NativeObjectSecurity クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

アクセス制御リスト (ACL: Access Control List) を直接操作せずにネイティブなオブジェクトへのアクセスを制御する機能を提供します。ネイティブなオブジェクト型は、ResourceType 列挙体で定義されます。

名前空間: System.Security.AccessControl
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Public MustInherit Class
 NativeObjectSecurity
    Inherits CommonObjectSecurity
Dim instance As NativeObjectSecurity
public abstract class NativeObjectSecurity
 : CommonObjectSecurity
public ref class NativeObjectSecurity abstract
 : public CommonObjectSecurity
public abstract class NativeObjectSecurity
 extends CommonObjectSecurity
public abstract class NativeObjectSecurity
 extends CommonObjectSecurity
継承階層継承階層
System.Object
   System.Security.AccessControl.ObjectSecurity
     System.Security.AccessControl.CommonObjectSecurity
      System.Security.AccessControl.NativeObjectSecurity
         派生クラス
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity コンストラクタ (Boolean, ResourceType)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。

名前空間: System.Security.AccessControl
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    isContainer As Boolean, _
    resourceType As ResourceType _
)
Dim isContainer As Boolean
Dim resourceType As ResourceType

Dim instance As New NativeObjectSecurity(isContainer,
 resourceType)
protected NativeObjectSecurity (
    bool isContainer,
    ResourceType resourceType
)
protected:
NativeObjectSecurity (
    bool isContainer, 
    ResourceType resourceType
)
protected NativeObjectSecurity (
    boolean isContainer, 
    ResourceType resourceType
)
protected function NativeObjectSecurity (
    isContainer : boolean, 
    resourceType : ResourceType
)

パラメータ

isContainer

新しい NativeObjectSecurity オブジェクトがコンテナ オブジェクトである場合は true。

resourceType

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの型。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NativeObjectSecurity クラス
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity コンストラクタ (Boolean, ResourceType, SafeHandle, AccessControlSections)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。

名前空間: System.Security.AccessControl
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    isContainer As Boolean, _
    resourceType As ResourceType, _
    handle As SafeHandle, _
    includeSections As AccessControlSections _
)
Dim isContainer As Boolean
Dim resourceType As ResourceType
Dim handle As SafeHandle
Dim includeSections As AccessControlSections

Dim instance As New NativeObjectSecurity(isContainer,
 resourceType, handle, includeSections)
protected NativeObjectSecurity (
    bool isContainer,
    ResourceType resourceType,
    SafeHandle handle,
    AccessControlSections includeSections
)
protected:
NativeObjectSecurity (
    bool isContainer, 
    ResourceType resourceType, 
    SafeHandle^ handle, 
    AccessControlSections includeSections
)
protected NativeObjectSecurity (
    boolean isContainer, 
    ResourceType resourceType, 
    SafeHandle handle, 
    AccessControlSections includeSections
)
protected function NativeObjectSecurity (
    isContainer : boolean, 
    resourceType : ResourceType, 
    handle : SafeHandle, 
    includeSections : AccessControlSections
)

パラメータ

isContainer

新しい NativeObjectSecurity オブジェクトがコンテナ オブジェクトである場合は true。

resourceType

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの型。

handle

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトのハンドル。

includeSections

この NativeObjectSecurity オブジェクトに格納される、セキュリティ設定できるオブジェクトのセキュリティ記述子のセクション (アクセス規則、監査規則、所有者、プライマリ グループ) を指定する AccessControlSections 列挙値の 1 つ。

解説解説

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NativeObjectSecurity クラス
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity コンストラクタ (Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。

名前空間: System.Security.AccessControl
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    isContainer As Boolean, _
    resourceType As ResourceType, _
    handle As SafeHandle, _
    includeSections As AccessControlSections, _
    exceptionFromErrorCode As ExceptionFromErrorCode, _
    exceptionContext As Object _
)
Dim isContainer As Boolean
Dim resourceType As ResourceType
Dim handle As SafeHandle
Dim includeSections As AccessControlSections
Dim exceptionFromErrorCode As ExceptionFromErrorCode
Dim exceptionContext As Object

Dim instance As New NativeObjectSecurity(isContainer,
 resourceType, handle, includeSections, exceptionFromErrorCode, exceptionContext)
protected NativeObjectSecurity (
    bool isContainer,
    ResourceType resourceType,
    SafeHandle handle,
    AccessControlSections includeSections,
    ExceptionFromErrorCode exceptionFromErrorCode,
    Object exceptionContext
)
protected:
NativeObjectSecurity (
    bool isContainer, 
    ResourceType resourceType, 
    SafeHandle^ handle, 
    AccessControlSections includeSections, 
    ExceptionFromErrorCode^ exceptionFromErrorCode, 
    Object^ exceptionContext
)
protected NativeObjectSecurity (
    boolean isContainer, 
    ResourceType resourceType, 
    SafeHandle handle, 
    AccessControlSections includeSections, 
    ExceptionFromErrorCode exceptionFromErrorCode, 
    Object exceptionContext
)
protected function NativeObjectSecurity (
    isContainer : boolean, 
    resourceType : ResourceType, 
    handle : SafeHandle, 
    includeSections : AccessControlSections, 
    exceptionFromErrorCode : ExceptionFromErrorCode, 
    exceptionContext : Object
)

パラメータ

isContainer

新しい NativeObjectSecurity オブジェクトがコンテナ オブジェクトである場合は true。

resourceType

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの型。

handle

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトのハンドル。

includeSections

この NativeObjectSecurity オブジェクトに格納される、セキュリティ設定できるオブジェクトのセキュリティ記述子のセクション (アクセス規則、監査規則、所有者、プライマリ グループ) を指定する AccessControlSections 列挙値の 1 つ。

exceptionFromErrorCode

カスタムの例外を提供するインテグレータによって実装されたデリゲート。

exceptionContext

例外の発生元または発生先に関するコンテキスト情報を格納しているオブジェクト。

解説解説

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NativeObjectSecurity クラス
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity コンストラクタ (Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。

名前空間: System.Security.AccessControl
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    isContainer As Boolean, _
    resourceType As ResourceType, _
    name As String, _
    includeSections As AccessControlSections, _
    exceptionFromErrorCode As ExceptionFromErrorCode, _
    exceptionContext As Object _
)
Dim isContainer As Boolean
Dim resourceType As ResourceType
Dim name As String
Dim includeSections As AccessControlSections
Dim exceptionFromErrorCode As ExceptionFromErrorCode
Dim exceptionContext As Object

Dim instance As New NativeObjectSecurity(isContainer,
 resourceType, name, includeSections, exceptionFromErrorCode, exceptionContext)
protected NativeObjectSecurity (
    bool isContainer,
    ResourceType resourceType,
    string name,
    AccessControlSections includeSections,
    ExceptionFromErrorCode exceptionFromErrorCode,
    Object exceptionContext
)
protected:
NativeObjectSecurity (
    bool isContainer, 
    ResourceType resourceType, 
    String^ name, 
    AccessControlSections includeSections, 
    ExceptionFromErrorCode^ exceptionFromErrorCode, 
    Object^ exceptionContext
)
protected NativeObjectSecurity (
    boolean isContainer, 
    ResourceType resourceType, 
    String name, 
    AccessControlSections includeSections, 
    ExceptionFromErrorCode exceptionFromErrorCode, 
    Object exceptionContext
)
protected function NativeObjectSecurity (
    isContainer : boolean, 
    resourceType : ResourceType, 
    name : String, 
    includeSections : AccessControlSections, 
    exceptionFromErrorCode : ExceptionFromErrorCode, 
    exceptionContext : Object
)

パラメータ

isContainer

新しい NativeObjectSecurity オブジェクトがコンテナ オブジェクトである場合は true。

resourceType

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの型。

name

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの名前。

includeSections

この NativeObjectSecurity オブジェクトに格納される、セキュリティ設定できるオブジェクトのセキュリティ記述子のセクション (アクセス規則、監査規則、所有者、プライマリ グループ) を指定する AccessControlSections 列挙値の 1 つ。

exceptionFromErrorCode

カスタムの例外を提供するインテグレータによって実装されたデリゲート。

exceptionContext

例外の発生元または発生先に関するコンテキスト情報を格納しているオブジェクト。

解説解説

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NativeObjectSecurity クラス
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity コンストラクタ (Boolean, ResourceType, NativeObjectSecurity.ExceptionFromErrorCode, Object)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定した値を使用して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。

名前空間: System.Security.AccessControl
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    isContainer As Boolean, _
    resourceType As ResourceType, _
    exceptionFromErrorCode As ExceptionFromErrorCode, _
    exceptionContext As Object _
)
Dim isContainer As Boolean
Dim resourceType As ResourceType
Dim exceptionFromErrorCode As ExceptionFromErrorCode
Dim exceptionContext As Object

Dim instance As New NativeObjectSecurity(isContainer,
 resourceType, exceptionFromErrorCode, exceptionContext)
protected NativeObjectSecurity (
    bool isContainer,
    ResourceType resourceType,
    ExceptionFromErrorCode exceptionFromErrorCode,
    Object exceptionContext
)
protected:
NativeObjectSecurity (
    bool isContainer, 
    ResourceType resourceType, 
    ExceptionFromErrorCode^ exceptionFromErrorCode, 
    Object^ exceptionContext
)
protected NativeObjectSecurity (
    boolean isContainer, 
    ResourceType resourceType, 
    ExceptionFromErrorCode exceptionFromErrorCode, 
    Object exceptionContext
)
protected function NativeObjectSecurity (
    isContainer : boolean, 
    resourceType : ResourceType, 
    exceptionFromErrorCode : ExceptionFromErrorCode, 
    exceptionContext : Object
)

パラメータ

isContainer

新しい NativeObjectSecurity オブジェクトがコンテナ オブジェクトである場合は true。

resourceType

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの型。

exceptionFromErrorCode

カスタムの例外を提供するインテグレータによって実装されたデリゲート。

exceptionContext

例外の発生元または発生先に関するコンテキスト情報を格納しているオブジェクト。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NativeObjectSecurity クラス
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity コンストラクタ (Boolean, ResourceType, String, AccessControlSections)

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。

名前空間: System.Security.AccessControl
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

Protected Sub New ( _
    isContainer As Boolean, _
    resourceType As ResourceType, _
    name As String, _
    includeSections As AccessControlSections _
)
Dim isContainer As Boolean
Dim resourceType As ResourceType
Dim name As String
Dim includeSections As AccessControlSections

Dim instance As New NativeObjectSecurity(isContainer,
 resourceType, name, includeSections)
protected NativeObjectSecurity (
    bool isContainer,
    ResourceType resourceType,
    string name,
    AccessControlSections includeSections
)
protected:
NativeObjectSecurity (
    bool isContainer, 
    ResourceType resourceType, 
    String^ name, 
    AccessControlSections includeSections
)
protected NativeObjectSecurity (
    boolean isContainer, 
    ResourceType resourceType, 
    String name, 
    AccessControlSections includeSections
)
protected function NativeObjectSecurity (
    isContainer : boolean, 
    resourceType : ResourceType, 
    name : String, 
    includeSections : AccessControlSections
)

パラメータ

isContainer

新しい NativObjectSecurity オブジェクトがコンテナ オブジェクトである場合は true。

resourceType

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの型。

name

新しい NativeObjectSecurity オブジェクトが関連付けられている、セキュリティ設定できるオブジェクトの名前。

includeSections

この NativeObjectSecurity オブジェクトに格納される、セキュリティ設定できるオブジェクトのセキュリティ記述子のセクション (アクセス規則、監査規則、所有者、プライマリ グループ) を指定する AccessControlSections 列挙値の 1 つ。

解説解説

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

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
NativeObjectSecurity クラス
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity コンストラクタ

NativeObjectSecurity クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
NativeObjectSecurity (Boolean, ResourceType) 値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。
NativeObjectSecurity (Boolean, ResourceType, NativeObjectSecurity.ExceptionFromErrorCode, Object) 指定した値を使用して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。
NativeObjectSecurity (Boolean, ResourceType, SafeHandle, AccessControlSections) 値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。
NativeObjectSecurity (Boolean, ResourceType, String, AccessControlSections) 値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。
NativeObjectSecurity (Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object) 値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。
NativeObjectSecurity (Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity.ExceptionFromErrorCode, Object) 値を指定して、NativeObjectSecurity クラスの新しいインスタンスを初期化します。コンストラクタと Persist メソッドに渡す includeSections パラメータの値を等しくすることをお勧めします。詳細については、解説を参照してください。
参照参照

関連項目

NativeObjectSecurity クラス
NativeObjectSecurity メンバ
System.Security.AccessControl 名前空間

NativeObjectSecurity プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ AccessRightType  この ObjectSecurity オブジェクトに関連付けられている、セキュリティ設定できるオブジェクトの Type を取得します。 ( ObjectSecurity から継承されます。)
パブリック プロパティ AccessRuleType  この ObjectSecurity オブジェクトのアクセス規則に関連付けられたオブジェクトの Type を取得します。Type オブジェクトは、SecurityIdentifier オブジェクトとしてキャストできるオブジェクトである必要があります。 ( ObjectSecurity から継承されます。)
パブリック プロパティ AreAccessRulesCanonical  この ObjectSecurity オブジェクトに関連付けられたアクセス規則の順序が標準であるかどうかを指定するブール値を取得します。 ( ObjectSecurity から継承されます。)
パブリック プロパティ AreAccessRulesProtected  この ObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) が保護されているかどうかを指定するブール値を取得します。 ( ObjectSecurity から継承されます。)
パブリック プロパティ AreAuditRulesCanonical  この ObjectSecurity オブジェクトに関連付けられた監査規則の順序が標準であるかどうかを指定するブール値を取得します。 ( ObjectSecurity から継承されます。)
パブリック プロパティ AreAuditRulesProtected  この ObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) が保護されているかどうかを指定するブール値を取得します。 ( ObjectSecurity から継承されます。)
パブリック プロパティ AuditRuleType  この ObjectSecurity オブジェクトの監査規則に関連付けられた Type オブジェクトを取得します。Type オブジェクトは、SecurityIdentifier オブジェクトとしてキャストできるオブジェクトである必要があります。 ( ObjectSecurity から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ AccessRulesModified  この ObjectSecurity オブジェクトに関連付けられたアクセス規則が変更されているかどうかを指定するブール値を取得または設定します。 ( ObjectSecurity から継承されます。)
プロテクト プロパティ AuditRulesModified  この ObjectSecurity オブジェクトに関連付けられた監査規則が変更されているかどうかを指定するブール値を取得または設定します。 ( ObjectSecurity から継承されます。)
プロテクト プロパティ GroupModified  セキュリティ設定できるオブジェクトに関連付けられたグループが変更されているかどうかを指定するブール値を取得または設定します。 ( ObjectSecurity から継承されます。)
プロテクト プロパティ IsContainer  この ObjectSecurity オブジェクトがコンテナ オブジェクトであるかどうかを指定するブール値を取得します。 ( ObjectSecurity から継承されます。)
プロテクト プロパティ IsDS  この ObjectSecurity オブジェクトがディレクトリ オブジェクトであるかどうかを指定するブール値を取得します。 ( ObjectSecurity から継承されます。)
プロテクト プロパティ OwnerModified  セキュリティ設定できるオブジェクトの所有者が変更されているかどうかを指定するブール値を取得または設定します。 ( ObjectSecurity から継承されます。)
参照参照

関連項目

NativeObjectSecurity クラス
System.Security.AccessControl 名前空間

NativeObjectSecurity メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AccessRuleFactory  値を指定して、AccessRule クラスの新しいインスタンスを初期化します。 ( ObjectSecurity から継承されます。)
パブリック メソッド AuditRuleFactory  値を指定して、AuditRule クラスの新しいインスタンスを初期化します。 ( ObjectSecurity から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド GetAccessRules  指定したセキュリティ識別子に関連付けられたアクセス規則のコレクションを取得します。 ( CommonObjectSecurity から継承されます。)
パブリック メソッド GetAuditRules  指定したセキュリティ識別子に関連付けられた監査規則のコレクションを取得します。 ( CommonObjectSecurity から継承されます。)
パブリック メソッド GetGroup  指定した所有者に関連付けられているプライマリ グループを取得します。 ( ObjectSecurity から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetOwner  指定したプライマリ グループに関連付けられている所有者を取得します。 ( ObjectSecurity から継承されます。)
パブリック メソッド GetSecurityDescriptorBinaryForm  この ObjectSecurity オブジェクトのセキュリティ記述子情報を表すバイト値の配列を返します。 ( ObjectSecurity から継承されます。)
パブリック メソッド GetSecurityDescriptorSddlForm  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定したセクションの SDDL (Security Descriptor Definition Language) 形式を返します。 ( ObjectSecurity から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IsSddlConversionSupported  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子を SDDL (Security Descriptor Definition Language) 形式に変換できるかどうかを示すブール値を返します。 ( ObjectSecurity から継承されます。)
パブリック メソッド ModifyAccessRule  指定した変更を、この ObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) に適用します。 ( ObjectSecurity から継承されます。)
パブリック メソッド ModifyAuditRule  指定した変更を、この ObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) に適用します。 ( ObjectSecurity から継承されます。)
パブリック メソッド PurgeAccessRules  指定した IdentityReference に関連付けられたすべてのアクセス規則を削除します。 ( ObjectSecurity から継承されます。)
パブリック メソッド PurgeAuditRules  指定した IdentityReference に関連付けられたすべての監査規則を削除します。 ( ObjectSecurity から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド SetAccessRuleProtection  この ObjectSecurity オブジェクトに関連付けられたアクセス規則の保護を設定または削除します。保護されたアクセス規則を親オブジェクトから継承を通じて変更することはできません。 ( ObjectSecurity から継承されます。)
パブリック メソッド SetAuditRuleProtection  この ObjectSecurity オブジェクトに関連付けられた監査規則の保護を設定または削除します。保護された監査規則を親オブジェクトから継承を通じて変更することはできません。 ( ObjectSecurity から継承されます。)
パブリック メソッド SetGroup  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子のプライマリ グループを設定します。 ( ObjectSecurity から継承されます。)
パブリック メソッド SetOwner  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の所有者を設定します。 ( ObjectSecurity から継承されます。)
パブリック メソッド SetSecurityDescriptorBinaryForm  オーバーロードされます。 指定したバイナリ データからこの ObjectSecurity オブジェクトのセキュリティ記述子を設定します。 ( ObjectSecurity から継承されます。)
パブリック メソッド SetSecurityDescriptorSddlForm  オーバーロードされます。 指定した SDDL (Security Descriptor Definition Language) 文字列からこの ObjectSecurity オブジェクトのセキュリティ記述子を設定します。 ( ObjectSecurity から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド AddAccessRule  指定したアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) に追加します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド AddAuditRule  指定した監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) に追加します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 ( Object から継承されます。)
プロテクト メソッド ModifyAccess  指定した変更を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) に適用します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド ModifyAudit  指定した変更を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) に適用します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド Persist オーバーロードされます。 オーバーライドされます。 この NativeObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定したセクションを、永続的なストレージに保存します。
プロテクト メソッド ReadLock  読み取りアクセスについて、この ObjectSecurity オブジェクトをロックします。 ( ObjectSecurity から継承されます。)
プロテクト メソッド ReadUnlock  読み取りアクセスについて、この ObjectSecurity オブジェクトのロックを解除します。 ( ObjectSecurity から継承されます。)
プロテクト メソッド RemoveAccessRule  指定したアクセス規則と同じセキュリティ識別子とアクセス マスクを含むアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) から削除します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAccessRuleAll  指定したアクセス規則と同じセキュリティ識別子を含むすべてのアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) から削除します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAccessRuleSpecific  指定したアクセス規則と完全に一致するすべてのアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) から削除します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAuditRule  指定した監査規則と同じセキュリティ識別子とアクセス マスクを含む監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAuditRuleAll  指定した監査規則と同じセキュリティ識別子を含むすべての監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAuditRuleSpecific  指定した監査規則と完全に一致するすべての監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド ResetAccessRule  この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) 内のすべてのアクセス規則を削除し、指定したアクセス規則を追加します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド SetAccessRule  指定したアクセス規則と同じセキュリティ識別子と修飾子を含むすべてのアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control) から削除し、指定したアクセス規則を追加します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド SetAuditRule  指定した監査規則と同じセキュリティ識別子と修飾子を含むすべての監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除し、指定した監査規則を追加します。 ( CommonObjectSecurity から継承されます。)
プロテクト メソッド WriteLock  書き込みアクセスについて、この ObjectSecurity オブジェクトをロックします。 ( ObjectSecurity から継承されます。)
プロテクト メソッド WriteUnlock  書き込みアクセスについて、この ObjectSecurity オブジェクトのロックを解除します。 ( ObjectSecurity から継承されます。)
参照参照

関連項目

NativeObjectSecurity クラス
System.Security.AccessControl 名前空間

NativeObjectSecurity メンバ

アクセス制御リスト (ACL: Access Control List) を直接操作せずにネイティブなオブジェクトへのアクセスを制御する機能を提供します。ネイティブなオブジェクト型は、ResourceType 列挙体で定義されます。

NativeObjectSecurity データ型で公開されるメンバを以下の表に示します。


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド NativeObjectSecurity オーバーロードされます。 NativeObjectSecurity クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ AccessRightType  この ObjectSecurity オブジェクトに関連付けられている、セキュリティ設定できるオブジェクトの Type を取得します。(ObjectSecurity から継承されます。)
パブリック プロパティ AccessRuleType  この ObjectSecurity オブジェクトのアクセス規則に関連付けられたオブジェクトの Type を取得します。Type オブジェクトは、SecurityIdentifier オブジェクトとしてキャストできるオブジェクトである必要があります。(ObjectSecurity から継承されます。)
パブリック プロパティ AreAccessRulesCanonical  この ObjectSecurity オブジェクトに関連付けられたアクセス規則の順序が標準であるかどうかを指定するブール値を取得します。(ObjectSecurity から継承されます。)
パブリック プロパティ AreAccessRulesProtected  この ObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) が保護されているかどうかを指定するブール値を取得します。(ObjectSecurity から継承されます。)
パブリック プロパティ AreAuditRulesCanonical  この ObjectSecurity オブジェクトに関連付けられた監査規則の順序が標準であるかどうかを指定するブール値を取得します。(ObjectSecurity から継承されます。)
パブリック プロパティ AreAuditRulesProtected  この ObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) が保護されているかどうかを指定するブール値を取得します。(ObjectSecurity から継承されます。)
パブリック プロパティ AuditRuleType  この ObjectSecurity オブジェクトの監査規則に関連付けられた Type オブジェクトを取得します。Type オブジェクトは、SecurityIdentifier オブジェクトとしてキャストできるオブジェクトである必要があります。(ObjectSecurity から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ AccessRulesModified  この ObjectSecurity オブジェクトに関連付けられたアクセス規則が変更されているかどうかを指定するブール値を取得または設定します。(ObjectSecurity から継承されます。)
プロテクト プロパティ AuditRulesModified  この ObjectSecurity オブジェクトに関連付けられた監査規則が変更されているかどうかを指定するブール値を取得または設定します。(ObjectSecurity から継承されます。)
プロテクト プロパティ GroupModified  セキュリティ設定できるオブジェクトに関連付けられたグループが変更されているかどうかを指定するブール値を取得または設定します。 (ObjectSecurity から継承されます。)
プロテクト プロパティ IsContainer  この ObjectSecurity オブジェクトがコンテナ オブジェクトであるかどうかを指定するブール値を取得します。(ObjectSecurity から継承されます。)
プロテクト プロパティ IsDS  この ObjectSecurity オブジェクトがディレクトリ オブジェクトであるかどうかを指定するブール値を取得します。(ObjectSecurity から継承されます。)
プロテクト プロパティ OwnerModified  セキュリティ設定できるオブジェクトの所有者が変更されているかどうかを指定するブール値を取得または設定します。(ObjectSecurity から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AccessRuleFactory  値を指定して、AccessRule クラスの新しいインスタンスを初期化します。 (ObjectSecurity から継承されます。)
パブリック メソッド AuditRuleFactory  値を指定して、AuditRule クラスの新しいインスタンスを初期化します。 (ObjectSecurity から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド GetAccessRules  指定したセキュリティ識別子に関連付けられたアクセス規則のコレクションを取得します。 (CommonObjectSecurity から継承されます。)
パブリック メソッド GetAuditRules  指定したセキュリティ識別子に関連付けられた監査規則のコレクションを取得します。 (CommonObjectSecurity から継承されます。)
パブリック メソッド GetGroup  指定した所有者に関連付けられているプライマリ グループを取得します。 (ObjectSecurity から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetOwner  指定したプライマリ グループに関連付けられている所有者を取得します。 (ObjectSecurity から継承されます。)
パブリック メソッド GetSecurityDescriptorBinaryForm  この ObjectSecurity オブジェクトのセキュリティ記述子情報を表すバイト値の配列を返します。 (ObjectSecurity から継承されます。)
パブリック メソッド GetSecurityDescriptorSddlForm  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定したセクションの SDDL (Security Descriptor Definition Language) 形式を返します。 (ObjectSecurity から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IsSddlConversionSupported  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子を SDDL (Security Descriptor Definition Language) 形式に変換できるかどうかを示すブール値を返します。 (ObjectSecurity から継承されます。)
パブリック メソッド ModifyAccessRule  指定した変更を、この ObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) に適用します。 (ObjectSecurity から継承されます。)
パブリック メソッド ModifyAuditRule  指定した変更を、この ObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) に適用します。 (ObjectSecurity から継承されます。)
パブリック メソッド PurgeAccessRules  指定した IdentityReference に関連付けられたすべてのアクセス規則を削除します。 (ObjectSecurity から継承されます。)
パブリック メソッド PurgeAuditRules  指定した IdentityReference に関連付けられたすべての監査規則を削除します。 (ObjectSecurity から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド SetAccessRuleProtection  この ObjectSecurity オブジェクトに関連付けられたアクセス規則の保護を設定または削除します。保護されたアクセス規則を親オブジェクトから継承を通じて変更することはできません。 (ObjectSecurity から継承されます。)
パブリック メソッド SetAuditRuleProtection  この ObjectSecurity オブジェクトに関連付けられた監査規則の保護を設定または削除します。保護された監査規則を親オブジェクトから継承を通じて変更することはできません。 (ObjectSecurity から継承されます。)
パブリック メソッド SetGroup  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子のプライマリ グループを設定します。 (ObjectSecurity から継承されます。)
パブリック メソッド SetOwner  この ObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の所有者を設定します。 (ObjectSecurity から継承されます。)
パブリック メソッド SetSecurityDescriptorBinaryForm  オーバーロードされます。 指定したバイナリ データからこの ObjectSecurity オブジェクトのセキュリティ記述子を設定します。 (ObjectSecurity から継承されます。)
パブリック メソッド SetSecurityDescriptorSddlForm  オーバーロードされます。 指定した SDDL (Security Descriptor Definition Language) 文字列からこの ObjectSecurity オブジェクトのセキュリティ記述子を設定します。 (ObjectSecurity から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド AddAccessRule  指定したアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) に追加します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド AddAuditRule  指定した監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) に追加します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 (Object から継承されます。)
プロテクト メソッド ModifyAccess  指定した変更を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) に適用します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド ModifyAudit  指定した変更を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) に適用します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド Persist オーバーロードされます。 オーバーライドされます。 この NativeObjectSecurity オブジェクトに関連付けられたセキュリティ記述子の指定したセクションを、永続的なストレージに保存します。
プロテクト メソッド ReadLock  読み取りアクセスについて、この ObjectSecurity オブジェクトをロックします。 (ObjectSecurity から継承されます。)
プロテクト メソッド ReadUnlock  読み取りアクセスについて、この ObjectSecurity オブジェクトのロックを解除します。 (ObjectSecurity から継承されます。)
プロテクト メソッド RemoveAccessRule  指定したアクセス規則と同じセキュリティ識別子とアクセス マスクを含むアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) から削除します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAccessRuleAll  指定したアクセス規則と同じセキュリティ識別子を含むすべてのアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) から削除します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAccessRuleSpecific  指定したアクセス規則と完全に一致するすべてのアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) から削除します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAuditRule  指定した監査規則と同じセキュリティ識別子とアクセス マスクを含む監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAuditRuleAll  指定した監査規則と同じセキュリティ識別子を含むすべての監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド RemoveAuditRuleSpecific  指定した監査規則と完全に一致するすべての監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド ResetAccessRule  この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control List) 内のすべてのアクセス規則を削除し、指定したアクセス規則を追加します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド SetAccessRule  指定したアクセス規則と同じセキュリティ識別子と修飾子を含むすべてのアクセス規則を、この CommonObjectSecurity オブジェクトに関連付けられた随意アクセス制御リスト (DACL: Discretionary Access Control) から削除し、指定したアクセス規則を追加します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド SetAuditRule  指定した監査規則と同じセキュリティ識別子と修飾子を含むすべての監査規則を、この CommonObjectSecurity オブジェクトに関連付けられたシステム アクセス制御リスト (SACL: System Access Control List) から削除し、指定した監査規則を追加します。 (CommonObjectSecurity から継承されます。)
プロテクト メソッド WriteLock  書き込みアクセスについて、この ObjectSecurity オブジェクトをロックします。 (ObjectSecurity から継承されます。)
プロテクト メソッド WriteUnlock  書き込みアクセスについて、この ObjectSecurity オブジェクトのロックを解除します。 (ObjectSecurity から継承されます。)
参照参照

関連項目

NativeObjectSecurity クラス
System.Security.AccessControl 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「NativeObjectSecurity」の関連用語

NativeObjectSecurityのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



NativeObjectSecurityのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS