共用方式為


ObjectSecurity<T> 建構函式

定義

使用指定的值,建立 ObjectSecurity`1 物件的新執行個體。

多載

ObjectSecurity<T>(Boolean, ResourceType)

初始化 ObjectSecurity`1 類別的新執行個體。

ObjectSecurity<T>(Boolean, ResourceType, SafeHandle, AccessControlSections)

初始化 ObjectSecurity`1 類別的新執行個體。

ObjectSecurity<T>(Boolean, ResourceType, String, AccessControlSections)

初始化 ObjectSecurity`1 類別的新執行個體。

ObjectSecurity<T>(Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)

初始化 ObjectSecurity`1 類別的新執行個體。

ObjectSecurity<T>(Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)

初始化 ObjectSecurity`1 類別的新執行個體。

ObjectSecurity<T>(Boolean, ResourceType)

初始化 ObjectSecurity`1 類別的新執行個體。

protected:
 ObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType);
protected ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType);
new System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)> : bool * System.Security.AccessControl.ResourceType -> System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)>
Protected Sub New (isContainer As Boolean, resourceType As ResourceType)

參數

isContainer
Boolean

如果新的true 物件是容器物件,則為 ObjectSecurity<T>

resourceType
ResourceType

資源的型別。

適用於

ObjectSecurity<T>(Boolean, ResourceType, SafeHandle, AccessControlSections)

初始化 ObjectSecurity`1 類別的新執行個體。

protected:
 ObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::Runtime::InteropServices::SafeHandle ^ safeHandle, System::Security::AccessControl::AccessControlSections includeSections);
protected ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle? safeHandle, System.Security.AccessControl.AccessControlSections includeSections);
protected ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle safeHandle, System.Security.AccessControl.AccessControlSections includeSections);
new System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)> : bool * System.Security.AccessControl.ResourceType * System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)>
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, safeHandle As SafeHandle, includeSections As AccessControlSections)

參數

isContainer
Boolean

如果新的true 物件是容器物件,則為 ObjectSecurity<T>

resourceType
ResourceType

資源的型別。

safeHandle
SafeHandle

控制代碼。

includeSections
AccessControlSections

要包含的區段。

適用於

ObjectSecurity<T>(Boolean, ResourceType, String, AccessControlSections)

初始化 ObjectSecurity`1 類別的新執行個體。

protected:
 ObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::String ^ name, System::Security::AccessControl::AccessControlSections includeSections);
protected ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType, string? name, System.Security.AccessControl.AccessControlSections includeSections);
protected ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType, string name, System.Security.AccessControl.AccessControlSections includeSections);
new System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)> : bool * System.Security.AccessControl.ResourceType * string * System.Security.AccessControl.AccessControlSections -> System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)>
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, name As String, includeSections As AccessControlSections)

參數

isContainer
Boolean

如果新的true 物件是容器物件,則為 ObjectSecurity<T>

resourceType
ResourceType

資源的型別。

name
String

新的 ObjectSecurity<T> 物件與其相關聯之安全物件的名稱。

includeSections
AccessControlSections

要包含的區段。

適用於

ObjectSecurity<T>(Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)

初始化 ObjectSecurity`1 類別的新執行個體。

protected:
 ObjectSecurity(bool isContainer, System::Security::AccessControl::ResourceType resourceType, System::Runtime::InteropServices::SafeHandle ^ safeHandle, System::Security::AccessControl::AccessControlSections includeSections, System::Security::AccessControl::NativeObjectSecurity::ExceptionFromErrorCode ^ exceptionFromErrorCode, System::Object ^ exceptionContext);
protected ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle? safeHandle, System.Security.AccessControl.AccessControlSections includeSections, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext);
protected ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType, System.Runtime.InteropServices.SafeHandle safeHandle, System.Security.AccessControl.AccessControlSections includeSections, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext);
new System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)> : bool * System.Security.AccessControl.ResourceType * System.Runtime.InteropServices.SafeHandle * System.Security.AccessControl.AccessControlSections * System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode * obj -> System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)>
Protected Sub New (isContainer As Boolean, resourceType As ResourceType, safeHandle As SafeHandle, includeSections As AccessControlSections, exceptionFromErrorCode As NativeObjectSecurity.ExceptionFromErrorCode, exceptionContext As Object)

參數

isContainer
Boolean

如果新的true 物件是容器物件,則為 ObjectSecurity<T>

resourceType
ResourceType

資源的型別。

safeHandle
SafeHandle

控制代碼。

includeSections
AccessControlSections

要包含的區段。

exceptionFromErrorCode
NativeObjectSecurity.ExceptionFromErrorCode

可提供自訂例外狀況之整合者所實作的委派。

exceptionContext
Object

包含來源或目的地例外狀況相關內容資訊的物件。

適用於

ObjectSecurity<T>(Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)

初始化 ObjectSecurity`1 類別的新執行個體。

protected:
 ObjectSecurity(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 ObjectSecurity (bool isContainer, System.Security.AccessControl.ResourceType resourceType, string? name, System.Security.AccessControl.AccessControlSections includeSections, System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext);
protected ObjectSecurity (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.ObjectSecurity<'T (requires 'T : struct)> : bool * System.Security.AccessControl.ResourceType * string * System.Security.AccessControl.AccessControlSections * System.Security.AccessControl.NativeObjectSecurity.ExceptionFromErrorCode * obj -> System.Security.AccessControl.ObjectSecurity<'T (requires 'T : struct)>
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 物件是容器物件,則為 ObjectSecurity<T>

resourceType
ResourceType

資源的型別。

name
String

新的 ObjectSecurity<T> 物件與其相關聯之安全物件的名稱。

includeSections
AccessControlSections

要包含的區段。

exceptionFromErrorCode
NativeObjectSecurity.ExceptionFromErrorCode

可提供自訂例外狀況之整合者所實作的委派。

exceptionContext
Object

包含來源或目的地例外狀況相關內容資訊的物件。

適用於