语言

X509CertificateCollection 类

定义

定义存储 X509Certificate 对象的集合。

public ref class X509CertificateCollection : System::Collections::CollectionBase
public ref class X509CertificateCollection : System::Collections::IList
public class X509CertificateCollection : System.Collections.CollectionBase
public class X509CertificateCollection : System.Collections.IList
[System.Serializable]
public class X509CertificateCollection : System.Collections.CollectionBase
type X509CertificateCollection = class
    inherit CollectionBase
type X509CertificateCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
[<System.Serializable>]
type X509CertificateCollection = class
    inherit CollectionBase
Public Class X509CertificateCollection
Inherits CollectionBase
Public Class X509CertificateCollection
Implements IList
继承
X509CertificateCollection
继承
X509CertificateCollection
派生
特性
实现

构造函数

名称 说明
X509CertificateCollection()

初始化 X509CertificateCollection 类的新实例。

X509CertificateCollection(X509Certificate[])

从对象数组X509CertificateCollection初始化类的新实例X509Certificate。

X509CertificateCollection(X509CertificateCollection)

从另一个X509CertificateCollection实例初始化类的新实例X509CertificateCollection。

属性

名称 说明
Capacity

获取或设置可包含的元素 CollectionBase 数。

(继承自 CollectionBase)
Count

获取集合中包含的元素数。

Count

获取实例中包含的 CollectionBase 元素数。 无法重写此属性。

(继承自 CollectionBase)
InnerList

获取包含 ArrayList 实例中 CollectionBase 元素的列表。

(继承自 CollectionBase)
Item[Int32]

获取或设置当前 X509CertificateCollection索引处的条目。

List

获取包含 IList 实例中 CollectionBase 元素的列表。

(继承自 CollectionBase)

方法

名称 说明
Add(X509Certificate)

将具有指定值的 a X509Certificate 值添加到当前 X509CertificateCollection。

AddRange(X509Certificate[])

将类型 X509Certificate 数组的元素复制到当前 X509CertificateCollection数组的末尾。

AddRange(X509CertificateCollection)

将指定的 X509CertificateCollection 元素复制到当前 X509CertificateCollection末尾。

Clear()

从集合中删除所有项。

Clear()

从 CollectionBase 实例中删除所有对象。 此方法不可重写。

(继承自 CollectionBase)
Contains(X509Certificate)

获取一个值,该值指示当前 X509CertificateCollection 是否包含指定的 X509Certificate。

CopyTo(X509Certificate[], Int32)

将 X509Certificate 当前 X509CertificateCollection 中的值复制到指定索引处的一维 Array 实例。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetEnumerator()

返回一个枚举器,该枚举器可以循环访问 X509CertificateCollection。

GetHashCode()

基于当前 X509CertificateCollection中包含的所有值生成哈希值。

GetType()

获取当前实例的 Type。

(继承自 Object)
IndexOf(X509Certificate)

返回当前X509Certificate中指定的索引X509CertificateCollection。

Insert(Int32, X509Certificate)

将 a X509Certificate 插入到指定索引处的当前 X509CertificateCollection 位置。

MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
OnClear()

清除实例的内容 CollectionBase 时执行其他自定义进程。

(继承自 CollectionBase)
OnClearComplete()

清除实例的内容 CollectionBase 后,执行其他自定义进程。

(继承自 CollectionBase)
OnInsert(Int32, Object)

在将新元素 CollectionBase 插入实例之前执行其他自定义过程。

(继承自 CollectionBase)
OnInsertComplete(Int32, Object)

在将新元素 CollectionBase 插入实例后执行其他自定义进程。

(继承自 CollectionBase)
OnRemove(Int32, Object)

从 CollectionBase 实例中删除元素时执行其他自定义进程。

(继承自 CollectionBase)
OnRemoveComplete(Int32, Object)

从 CollectionBase 实例中删除元素后执行其他自定义进程。

(继承自 CollectionBase)
OnSet(Int32, Object, Object)

在实例中 CollectionBase 设置值之前执行其他自定义过程。

(继承自 CollectionBase)
OnSetComplete(Int32, Object, Object)

在实例中 CollectionBase 设置值后执行其他自定义进程。

(继承自 CollectionBase)
OnValidate(Object)

验证值时执行其他自定义进程。

OnValidate(Object)

验证值时执行其他自定义进程。

(继承自 CollectionBase)
Remove(X509Certificate)

从当前X509Certificate中删除特定X509CertificateCollection项。

RemoveAt(Int32)

删除指定索引处的元素。

RemoveAt(Int32)

删除实例的指定索引处的 CollectionBase 元素。 此方法不可重写。

(继承自 CollectionBase)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

显式接口实现

名称 说明
ICollection.CopyTo(Array, Int32)

将整个集合复制到兼容的一维数组,从目标数组的指定索引处开始。

ICollection.CopyTo(Array, Int32)

将整个 CollectionBase 复制到兼容的一维 Array,从目标数组的指定索引处开始。

(继承自 CollectionBase)
ICollection.IsSynchronized

获取一个值,该值指示是否同步对集合的访问(线程安全)。

ICollection.IsSynchronized

获取一个值,该值指示对 CollectionBase 同步的访问是否同步(线程安全)。

(继承自 CollectionBase)
ICollection.SyncRoot

获取一个对象,该对象可用于同步对集合的访问。

ICollection.SyncRoot

获取可用于同步对 . CollectionBase的访问的对象。

(继承自 CollectionBase)
IEnumerable.GetEnumerator()

返回循环访问集合的枚举器。

IList.Add(Object)

将对象添加到集合的末尾。

IList.Add(Object)

将对象添加到该 CollectionBase对象的末尾。

(继承自 CollectionBase)
IList.Contains(Object)

确定集合是否包含特定元素。

IList.Contains(Object)

确定该元素是否 CollectionBase 包含特定元素。

(继承自 CollectionBase)
IList.IndexOf(Object)

搜索指定的对象并返回集合中第一个匹配项的从零开始的索引。

IList.IndexOf(Object)

搜索指定的 Object 并返回整个 CollectionBase匹配项中第一个匹配项的从零开始的索引。

(继承自 CollectionBase)
IList.Insert(Int32, Object)

将元素插入集合中的指定索引处。

IList.Insert(Int32, Object)

将元素 CollectionBase 插入指定索引处。

(继承自 CollectionBase)
IList.IsFixedSize

获取一个值,该值指示集合是否具有固定大小。

IList.IsFixedSize

获取一个值,该值指示是否 CollectionBase 具有固定大小。

(继承自 CollectionBase)
IList.IsReadOnly

获取一个值,该值指示集合是否为只读。

IList.IsReadOnly

获取一个值,该值指示是否 CollectionBase 为只读。

(继承自 CollectionBase)
IList.Item[Int32]

获取或设置指定索引处的元素。

IList.Item[Int32]

获取或设置指定索引处的元素。

(继承自 CollectionBase)
IList.Remove(Object)

从集合中删除特定对象的第一个匹配项。

IList.Remove(Object)

从 CollectionBase中删除特定对象的第一个匹配项。

(继承自 CollectionBase)

扩展方法

名称 说明
AsParallel(IEnumerable)

启用查询的并行化。

AsQueryable(IEnumerable)

将 IEnumerable 转换为 IQueryable。

Cast<TResult>(IEnumerable)

将 IEnumerable 的元素强制转换为指定类型。

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。

适用于