FileSystemSecurity.AccessRuleType 属性

定义

获取 FileSystemSecurity 类用于表示访问规则的枚举。Gets the enumeration that the FileSystemSecurity class uses to represent access rules.

public:
 virtual property Type ^ AccessRuleType { Type ^ get(); };
public override Type AccessRuleType { get; }
member this.AccessRuleType : Type
Public Overrides ReadOnly Property AccessRuleType As Type

属性值

Type

一个表示 FileSystemAccessRule 类的 Type 对象。A Type object representing the FileSystemAccessRule class.

注解

派生自类的类将 FileSystemSecurity 重写 AccessRuleType 属性,并返回用于表示访问规则的类型。Classes that derive from the FileSystemSecurity class override the AccessRuleType property and return the type they use to represent access rules. 当使用包含多个类型的安全对象的数组或集合时,请使用此属性来确定要用于每个安全对象的正确访问规则类型。When you work with arrays or collections that contain multiple types of security objects, use this property to determine the correct access rule type to use with each security object.

适用于