AccessRule<T> 构造函数

定义

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

重载

AccessRule<T>(IdentityReference, T, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

AccessRule<T>(String, T, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

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

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

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

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

AccessRule<T>(IdentityReference, T, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

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

访问规则应用到其中的标识。The identity to which the access rule applies.

rights
T

访问规则的权限。The rights of the access rule.

type
AccessControlType

有效的访问控制类型。The valid access control type.

适用于

AccessRule<T>(String, T, AccessControlType)

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

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

访问规则应用到其中的标识。The identity to which the access rule applies.

rights
T

访问规则的权限。The rights of the access rule.

type
AccessControlType

有效的访问控制类型。The valid access control type.

适用于

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

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

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

访问规则应用到其中的标识。The identity to which the access rule applies.

rights
T

访问规则的权限。The rights of the access rule.

inheritanceFlags
InheritanceFlags

访问规则的继承属性。The inheritance properties of the access rule.

propagationFlags
PropagationFlags

是否会自动传播继承的访问规则。Whether inherited access rules are automatically propagated. 如果将 inheritanceFlags 设置为 None,则忽略传播标志。The propagation flags are ignored if inheritanceFlags is set to None.

type
AccessControlType

有效的访问控制类型。The valid access control type.

适用于

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

使用指定的值初始化 AccessRule’1 类的一个新实例。Initializes a new instance of the AccessRule'1 class by using the specified values.

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

访问规则应用到其中的标识。The identity to which the access rule applies.

rights
T

访问规则的权限。The rights of the access rule.

inheritanceFlags
InheritanceFlags

访问规则的继承属性。The inheritance properties of the access rule.

propagationFlags
PropagationFlags

是否会自动传播继承的访问规则。Whether inherited access rules are automatically propagated. 如果将 inheritanceFlags 设置为 None,则忽略传播标志。The propagation flags are ignored if inheritanceFlags is set to None.

type
AccessControlType

有效的访问控制类型。The valid access control type.

适用于