KeyContainerPermissionAccessEntryCollection 类

定义

表示 KeyContainerPermissionAccessEntry 对象集合。Represents a collection of KeyContainerPermissionAccessEntry objects. 此类不能被继承。This class cannot be inherited.

public ref class KeyContainerPermissionAccessEntryCollection sealed : System::Collections::ICollection
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class KeyContainerPermissionAccessEntryCollection
Implements ICollection
继承
KeyContainerPermissionAccessEntryCollection
属性
实现

注解

KeyContainerPermissionAccessEntry对象指定特定密钥容器的访问权限。KeyContainerPermissionAccessEntry objects specify access rights for specific key containers.

构造函数

KeyContainerPermissionAccessEntryCollection()

属性

Count

获取集合中的项数。Gets the number of items in the collection.

IsSynchronized

获取一个值,该值指示集合是否是同步的(线程安全)。Gets a value indicating whether the collection is synchronized (thread safe).

Item[Int32]

获取集合中指定索引处的项。Gets the item at the specified index in the collection.

SyncRoot

获取可用于同步对集合的访问的对象。Gets an object that can be used to synchronize access to the collection.

方法

Add(KeyContainerPermissionAccessEntry)

KeyContainerPermissionAccessEntry 对象添加到集合中。Adds a KeyContainerPermissionAccessEntry object to the collection.

Clear()

从集合中移除所有 KeyContainerPermissionAccessEntry 对象。Removes all the KeyContainerPermissionAccessEntry objects from the collection.

CopyTo(Array, Int32)
CopyTo(KeyContainerPermissionAccessEntry[], Int32)

将集合中的元素复制到一个兼容的一维数组(从目标数组的指定索引处开始)。Copies the elements of the collection to a compatible one-dimensional array, starting at the specified index of the target array.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

返回 KeyContainerPermissionAccessEntryEnumerator 对象,该对象可用于循环访问集合中的对象。Returns a KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the objects in the collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

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

(继承自 Object)
IndexOf(KeyContainerPermissionAccessEntry)

获取指定的 KeyContainerPermissionAccessEntry 对象在该集合中的索引(如果它在该集合中存在)。Gets the index in the collection of the specified KeyContainerPermissionAccessEntry object, if it exists in the collection.

MemberwiseClone()

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

(继承自 Object)
Remove(KeyContainerPermissionAccessEntry)

从集合中移除指定的 KeyContainerPermissionAccessEntry 对象。Removes the specified KeyContainerPermissionAccessEntry object from the collection.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式界面实现

ICollection.CopyTo(Array, Int32)

将集合中的元素复制到一个兼容的一维数组(从目标数组的指定索引处开始)。Copies the elements of the collection to a compatible one-dimensional array, starting at the specified index of the target array.

IEnumerable.GetEnumerator()

返回 KeyContainerPermissionAccessEntryEnumerator 对象,该对象可用于循环访问集合中的对象。Returns a KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the objects in the collection.

扩展方法

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.

适用于

另请参阅