NativeObjectSecurity 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 NativeObjectSecurity 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| NativeObjectSecurity(Boolean, ResourceType) |
初始化一個新的類別實例 NativeObjectSecurity ,並以指定值。 |
| NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections) |
初始化一個新的類別實例 NativeObjectSecurity ,並以指定值。 我們建議傳給建構子與持久化方法的參數值 |
| NativeObjectSecurity(Boolean, ResourceType, NativeObjectSecurity+ExceptionFromErrorCode, Object) |
使用指定的值初始化該類別的新 NativeObjectSecurity 實例。 |
| NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections) |
初始化一個新的類別實例 NativeObjectSecurity ,並以指定值。 我們建議傳給建構子與持久化方法的參數值 |
| NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object) |
初始化一個新的類別實例 NativeObjectSecurity ,並以指定值。 我們建議傳給建構子與持久化方法的參數值 |
| NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object) |
初始化一個新的類別實例 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);
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 的區域(存取規則、稽核規則、擁有者、主要群組)。
備註
在持久NativeObjectSecurity化物件時,如果傳遞給Persist方法的參數值includeSections與includeSections傳給建立該NativeObjectSecurity物件的建構子的參數值不完全相同,持久NativeObjectSecurity化物件的某些區段可能包含不可預測的值。 例如,若一個建構子被呼叫為 includeSectionsAccess,之後 Persist 在該物件上呼叫一個方法為 includeSectionsAll,所得的持久 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);
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);
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 的區域(存取規則、稽核規則、擁有者、主要群組)。
備註
在持久NativeObjectSecurity化物件時,如果傳遞給Persist方法的參數值includeSections與includeSections傳給建立該NativeObjectSecurity物件的建構子的參數值不完全相同,持久NativeObjectSecurity化物件的某些區段可能包含不可預測的值。 例如,若一個建構子被呼叫為 includeSectionsAccess,之後 Persist 在該物件上呼叫一個方法為 includeSectionsAll,所得的持久 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);
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 的區域(存取規則、稽核規則、擁有者、主要群組)。
- exceptionFromErrorCode
- NativeObjectSecurity.ExceptionFromErrorCode
由整合商實作的代理,提供自訂例外。
- exceptionContext
- Object
包含例外來源或目的地的上下文資訊的物件。
備註
在持久NativeObjectSecurity化物件時,如果傳遞給Persist方法的參數值includeSections與includeSections傳給建立該NativeObjectSecurity物件的建構子的參數值不完全相同,持久NativeObjectSecurity化物件的某些區段可能包含不可預測的值。 例如,若一個建構子被呼叫為 includeSectionsAccess,之後 Persist 在該物件上呼叫一個方法為 includeSectionsAll,所得的持久 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);
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 的區域(存取規則、稽核規則、擁有者、主要群組)。
- exceptionFromErrorCode
- NativeObjectSecurity.ExceptionFromErrorCode
由整合商實作的代理,提供自訂例外。
- exceptionContext
- Object
包含例外來源或目的地的上下文資訊的物件。
備註
在持久NativeObjectSecurity化物件時,如果傳遞給Persist方法的參數值includeSections與includeSections傳給建立該NativeObjectSecurity物件的建構子的參數值不完全相同,持久NativeObjectSecurity化物件的某些區段可能包含不可預測的值。 例如,若一個建構子被呼叫為 includeSectionsAccess,之後 Persist 在該物件上呼叫一個方法為 includeSectionsAll,所得的持久 NativeObjectSecurity 物件將包含其審計規則、群組與擁有者的不可預測值。