X509ExtensionCollection X509ExtensionCollection X509ExtensionCollection X509ExtensionCollection Class

定义

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

public ref class X509ExtensionCollection sealed : System::Collections::ICollection
public sealed class X509ExtensionCollection : System.Collections.ICollection
type X509ExtensionCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class X509ExtensionCollection
Implements ICollection
继承
X509ExtensionCollectionX509ExtensionCollectionX509ExtensionCollectionX509ExtensionCollection
实现

注解

此类表示与证书关联X509Extension的对象的集合。This class represents a collection of X509Extension objects associated with a certificate. 这些扩展可提供有关证书的其他信息。These extensions can provide additional information about the certificate.

构造函数

X509ExtensionCollection() X509ExtensionCollection() X509ExtensionCollection() X509ExtensionCollection()

初始化 X509ExtensionCollection 类的新实例。Initializes a new instance of the X509ExtensionCollection class.

属性

Count Count Count Count

获取 X509Extension 对象中 X509ExtensionCollection 对象的数目。Gets the number of X509Extension objects in a X509ExtensionCollection object.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

获取一个值,该值表示是否保证此集合是线程安全的。Gets a value indicating whether the collection is guaranteed to be thread safe.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

获取位于指定索引位置的 X509Extension 对象。Gets the X509Extension object at the specified index.

Item[String] Item[String] Item[String] Item[String]

获取值或友好名称由对象标识符 (OID) 指定的第一个 X509Extension 对象。Gets the first X509Extension object whose value or friendly name is specified by an object identifier (OID).

SyncRoot SyncRoot SyncRoot SyncRoot

获取一个对象,该对象可用于同步对 X509ExtensionCollection 对象的访问。Gets an object that you can use to synchronize access to the X509ExtensionCollection object.

方法

Add(X509Extension) Add(X509Extension) Add(X509Extension) Add(X509Extension)

X509Extension 对象添加到 X509ExtensionCollection 对象中。Adds an X509Extension object to an X509ExtensionCollection object.

CopyTo(X509Extension[], Int32) CopyTo(X509Extension[], Int32) CopyTo(X509Extension[], Int32) CopyTo(X509Extension[], Int32)

从指定的索引开始,将集合复制到数组。Copies a collection into an array starting at the specified index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回可循环访问 X509ExtensionCollection 对象的枚举数。Returns an enumerator that can iterate through an X509ExtensionCollection object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

显式界面实现

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

从指定的索引开始,将集合复制到数组。Copies the collection into an array starting at the specified index.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

返回可循环访问 X509ExtensionCollection 对象的枚举数。Returns an enumerator that can iterate through an X509ExtensionCollection object.

扩展方法

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于