GenericAcl 类
定义
表示访问控制列表 (ACL),并且是 CommonAcl、DiscretionaryAcl、RawAcl 和 SystemAcl 类的基类。Represents an access control list (ACL) and is the base class for the CommonAcl, DiscretionaryAcl, RawAcl, and SystemAcl classes.
public ref class GenericAcl abstract : System::Collections::ICollection
public abstract class GenericAcl : System.Collections.ICollection
type GenericAcl = class
interface ICollection
interface IEnumerable
Public MustInherit Class GenericAcl
Implements ICollection
- 继承
-
GenericAcl
- 派生
- 实现
构造函数
| GenericAcl() |
初始化 GenericAcl 类的新实例。Initializes a new instance of the GenericAcl class. |
字段
| AclRevision |
当前 GenericAcl 的修订级别。The revision level of the current GenericAcl. 此值由不与目录服务对象关联的访问控制列表 (ACL) 的 Revision 属性返回。This value is returned by the Revision property for Access Control Lists (ACLs) that are not associated with Directory Services objects. |
| AclRevisionDS |
当前 GenericAcl 的修订级别。The revision level of the current GenericAcl. 此值由与目录服务对象关联的访问控制列表 (ACL) 的 Revision 属性返回。This value is returned by the Revision property for Access Control Lists (ACLs) that are associated with Directory Services objects. |
| MaxBinaryLength |
GenericAcl 对象允许的最大二进制长度。The maximum allowed binary length of a GenericAcl object. |
属性
| BinaryLength |
获取当前 GenericAcl 对象的二进制表示形式的长度(以字节为单位)。Gets the length, in bytes, of the binary representation of the current GenericAcl object. 在使用 GetBinaryForm(Byte[], Int32) 方法将 ACL 封送到二进制数组之前,应使用此长度。This length should be used before marshaling the ACL into a binary array with the GetBinaryForm(Byte[], Int32) method. |
| Count |
获取当前 GenericAcl 对象中访问控制项 (ACE) 的数量。Gets the number of access control entries (ACEs) in the current GenericAcl object. |
| IsSynchronized |
始终将此属性设置为 |
| Item[Int32] |
获取或设置指定索引处的 GenericAce。Gets or sets the GenericAce at the specified index. |
| Revision |
获取 GenericAcl 的修订级别。Gets the revision level of the GenericAcl. |
| SyncRoot |
此属性始终返回 |
方法
| CopyTo(GenericAce[], Int32) |
将当前 GenericAcl 的每个 GenericAce 复制到指定数组。Copies each GenericAce of the current GenericAcl into the specified array. |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetBinaryForm(Byte[], Int32) |
将 GenericAcl 对象的内容从指定的偏移量开始封送到指定的字节数组中。Marshals the contents of the GenericAcl object into the specified byte array beginning at the specified offset. |
| GetEnumerator() |
检索可用于在访问控制列表 (ACL) 中循环访问访问控制项 (ACE) 的对象。Retrieves an object that you can use to iterate through the access control entries (ACEs) in an access control list (ACL). |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
显式接口实现
| ICollection.CopyTo(Array, Int32) |
将当前 GenericAcl 的每个 GenericAce 复制到指定数组。Copies each GenericAce of the current GenericAcl into the specified array. |
| IEnumerable.GetEnumerator() |
返回 AceEnumerator 类的新实例,该实例被转换为 IEnumerator 接口的实例。Returns a new instance of the AceEnumerator class cast as an instance of the IEnumerator interface. |
扩展方法
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |