ObjectSecurity<T> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定值为 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
包含有关异常的源或目标的上下文信息的对象。