RegistrySecurity.AccessRuleType 属性

定义

获取 RegistrySecurity 类用于表示访问规则的类型。Gets the type that the RegistrySecurity 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

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

注解

派生自类的类将 ObjectSecurity 重写 AccessRuleType 属性,并返回用于表示访问规则的类型。Classes that derive from the ObjectSecurity 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.

适用于