X509CertificateCollection.Item Property

Gets or sets the entry at the specified index of the current X509CertificateCollection.

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

public X509Certificate this [
	int index
] { get; set; }
/** @property */
public X509Certificate get_Item (int index)

/** @property */
public void set_Item (int index, X509Certificate value)

JScript supports the use of indexed properties, but not the declaration of new ones.



The zero-based index of the entry to locate in the current X509CertificateCollection.

Property Value

The X509Certificate at the specified index of the current X509CertificateCollection.

Exception typeCondition


The index parameter is outside the valid range of indexes for the collection.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions