Share via


AccessRule<T> 建構函式

定義

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

多載

AccessRule<T>(IdentityReference, T, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

AccessRule<T>(String, T, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

AccessRule<T>(IdentityReference, T, InheritanceFlags, PropagationFlags, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

AccessRule<T>(String, T, InheritanceFlags, PropagationFlags, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

AccessRule<T>(IdentityReference, T, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

public:
 AccessRule(System::Security::Principal::IdentityReference ^ identity, T rights, System::Security::AccessControl::AccessControlType type);
public AccessRule (System.Security.Principal.IdentityReference identity, T rights, System.Security.AccessControl.AccessControlType type);
new System.Security.AccessControl.AccessRule<'T (requires 'T : struct)> : System.Security.Principal.IdentityReference * 'T * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule<'T (requires 'T : struct)>
Public Sub New (identity As IdentityReference, rights As T, type As AccessControlType)

參數

identity
IdentityReference

要套用存取規則的識別。

rights
T

存取規則的權限。

type
AccessControlType

有效的存取控制型別。

適用於

AccessRule<T>(String, T, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

public:
 AccessRule(System::String ^ identity, T rights, System::Security::AccessControl::AccessControlType type);
public AccessRule (string identity, T rights, System.Security.AccessControl.AccessControlType type);
new System.Security.AccessControl.AccessRule<'T (requires 'T : struct)> : string * 'T * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule<'T (requires 'T : struct)>
Public Sub New (identity As String, rights As T, type As AccessControlType)

參數

identity
String

要套用存取規則的識別。

rights
T

存取規則的權限。

type
AccessControlType

有效的存取控制型別。

適用於

AccessRule<T>(IdentityReference, T, InheritanceFlags, PropagationFlags, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

public:
 AccessRule(System::Security::Principal::IdentityReference ^ identity, T rights, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AccessControlType type);
public AccessRule (System.Security.Principal.IdentityReference identity, T rights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type);
new System.Security.AccessControl.AccessRule<'T (requires 'T : struct)> : System.Security.Principal.IdentityReference * 'T * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule<'T (requires 'T : struct)>
Public Sub New (identity As IdentityReference, rights As T, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType)

參數

identity
IdentityReference

要套用存取規則的識別。

rights
T

存取規則的權限。

inheritanceFlags
InheritanceFlags

存取規則的繼承屬性。

propagationFlags
PropagationFlags

是否自動傳播繼承的存取規則。 如果 inheritanceFlags 設為 None,則忽略傳播旗標。

type
AccessControlType

有效的存取控制型別。

適用於

AccessRule<T>(String, T, InheritanceFlags, PropagationFlags, AccessControlType)

使用指定的值,初始化 AccessRule’1 類別的新執行個體。

public:
 AccessRule(System::String ^ identity, T rights, System::Security::AccessControl::InheritanceFlags inheritanceFlags, System::Security::AccessControl::PropagationFlags propagationFlags, System::Security::AccessControl::AccessControlType type);
public AccessRule (string identity, T rights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AccessControlType type);
new System.Security.AccessControl.AccessRule<'T (requires 'T : struct)> : string * 'T * System.Security.AccessControl.InheritanceFlags * System.Security.AccessControl.PropagationFlags * System.Security.AccessControl.AccessControlType -> System.Security.AccessControl.AccessRule<'T (requires 'T : struct)>
Public Sub New (identity As String, rights As T, inheritanceFlags As InheritanceFlags, propagationFlags As PropagationFlags, type As AccessControlType)

參數

identity
String

要套用存取規則的識別。

rights
T

存取規則的權限。

inheritanceFlags
InheritanceFlags

存取規則的繼承屬性。

propagationFlags
PropagationFlags

是否自動傳播繼承的存取規則。 如果 inheritanceFlags 設為 None,則忽略傳播旗標。

type
AccessControlType

有效的存取控制型別。

適用於