X509Certificate2Collection Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Represents a collection of X509Certificate2 objects. This class cannot be inherited.

System..::..Object
  System.Collections..::..ArrayList
    System.Security.Cryptography.X509Certificates..::..X509Certificate2Collection

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  System.Security (in System.Security.dll)

[SerializableAttribute]
public class X509Certificate2Collection : ArrayList

The X509Certificate2Collection type exposes the following members.

  NameDescription
Public methodX509Certificate2Collection()()()()Initializes a new instance of the X509Certificate2Collection class without any X509Certificate2 information.
Public methodX509Certificate2Collection(array<X509Certificate2>[]()[][])Initializes a new instance of the X509Certificate2Collection class using an array of X509Certificate2 objects.
Public methodX509Certificate2Collection(X509Certificate2Collection)Initializes a new instance of the X509Certificate2Collection class using the specified certificate collection.
Top

  NameDescription
Public propertyCapacityGets or sets the number of elements that the ArrayList can contain. (Inherited from ArrayList.)
Public propertyCountGets the number of elements actually contained in the ArrayList. (Inherited from ArrayList.)
Public propertyIsFixedSizeGets a value indicating whether the ArrayList has a fixed size. (Inherited from ArrayList.)
Public propertyIsReadOnlyGets a value indicating whether the ArrayList is read-only. (Inherited from ArrayList.)
Public propertyIsSynchronizedGets a value indicating whether access to the ArrayList is synchronized (thread safe). (Inherited from ArrayList.)
Public propertyItemGets or sets the element at the specified index.
Public propertySyncRootGets an object that can be used to synchronize access to the ArrayList. (Inherited from ArrayList.)
Top

  NameDescription
Public methodAdd(Object)Adds an object to the end of the ArrayList. (Inherited from ArrayList.)
Public methodAdd(X509Certificate2)Adds an object to the end of the X509Certificate2Collection.
Public methodAddRange(array<X509Certificate2>[]()[][])Adds multiple X509Certificate2 objects in an array to the X509Certificate2Collection object.
Public methodAddRange(X509Certificate2Collection)Adds multiple X509Certificate2 objects in an X509Certificate2Collection object to another X509Certificate2Collection object.
Public methodBinarySearchSearches the entire sorted ArrayList for an element using the specified comparer and returns the zero-based index of the element. (Inherited from ArrayList.)
Public methodClearRemoves all elements from the ArrayList. (Inherited from ArrayList.)
Public methodCloneCreates a shallow copy of the ArrayList. (Inherited from ArrayList.)
Public methodContains(Object)Determines whether an element is in the ArrayList. (Inherited from ArrayList.)
Public methodContains(X509Certificate2)Determines whether the X509Certificate2Collection object contains a specific certificate.
Public methodCopyTo(Array)Copies the entire ArrayList to a compatible one-dimensional Array, starting at the beginning of the target array. (Inherited from ArrayList.)
Public methodCopyTo(Array, Int32)Copies the entire ArrayList to a compatible one-dimensional Array, starting at the specified index of the target array. (Inherited from ArrayList.)
Public methodCopyTo(array<X509Certificate2>[]()[][], Int32)Copies the X509Certificate values in the current X509Certificate2Collection to a one-dimensional array at the specified index.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindSearches an X509Certificate2Collection object using the search criteria specified by the X509FindType enumeration and the findValue object.
Public methodGetEnumeratorReturns an enumerator for the entire ArrayList. (Inherited from ArrayList.)
Public methodGetHashCodeBuilds a hash value based on all values contained in the current collection. (Overrides Object..::..GetHashCode()()()().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIndexOf(Object)Searches for the specified Object and returns the zero-based index of the first occurrence within the entire ArrayList. (Inherited from ArrayList.)
Public methodIndexOf(X509Certificate2)Returns the index of the specified X509Certificate in the current X509Certificate2Collection.
Public methodIndexOf(Object, Int32)Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the ArrayList that extends from the specified index to the last element. (Inherited from ArrayList.)
Public methodIndexOf(Object, Int32, Int32)Searches for the specified Object and returns the zero-based index of the first occurrence within the range of elements in the ArrayList that starts at the specified index and contains the specified number of elements. (Inherited from ArrayList.)
Public methodInsert(Int32, Object)Inserts an element into the ArrayList at the specified index. (Inherited from ArrayList.)
Public methodInsert(Int32, X509Certificate2)Inserts an object into the X509Certificate2Collection object at the specified index.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemove(Object)Removes the first occurrence of a specific object from the ArrayList. (Inherited from ArrayList.)
Public methodRemove(X509Certificate2)Removes the first occurrence of a certificate from the X509Certificate2Collection object.
Public methodRemoveAtRemoves the element at the specified index of the ArrayList. (Inherited from ArrayList.)
Public methodToArray()()()()Copies the elements of the ArrayList to a new Object array. (Inherited from ArrayList.)
Public methodToArray(Type)Copies the elements of the ArrayList to a new array of the specified element type. (Inherited from ArrayList.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

When an X509Certificate2 store is opened, the result is represented by an X509Certificate2Collection object. If you are familiar with the unmanaged Cryptographic API constructs, you can think of an X509Certificate2Collection as a memory store of X509Certificate2 objects.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: