GenericAcl 类

定义

表示访问控制列表 (ACL),并且是 CommonAclDiscretionaryAclRawAclSystemAcl 类的基类。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

始终将此属性设置为 falseThis property is always set to false. 实现此属性只是因为它是 ICollection 接口的实现所必需的属性。It is implemented only because it is required for the implementation of the ICollection interface.

Item[Int32]

获取或设置指定索引处的 GenericAceGets or sets the GenericAce at the specified index.

Revision

获取 GenericAcl 的修订级别。Gets the revision level of the GenericAcl.

SyncRoot

此属性始终返回 nullThis property always returns null. 实现此属性只是因为它是 ICollection 接口的实现所必需的属性。It is implemented only because it is required for the implementation of the ICollection interface.

方法

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()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。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 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于