This documentation is archived and is not being maintained.

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)

Not applicable.



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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0