Item Property
Collapse the table of content
Expand the table of content

X509CertificateCollection.Item Property

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

[C#] In C#, this property is the indexer for the X509CertificateCollection class.

[Visual Basic]
Public Default Property Item( _
   ByVal index As Integer _
) As X509Certificate
[C#]
public X509Certificate this[
 int index
] {get; set;}
[C++]
public: __property X509Certificate* get_Item(
 int index
);
public: __property void set_Item(
 int index,
   X509Certificate*
);
[JScript]
returnValue = X509CertificateCollectionObject.Item(index);
X509CertificateCollectionObject.Item(index) = returnValue;
-or-
returnValue = X509CertificateCollectionObject(index);
X509CertificateCollectionObject(index) = returnValue;

[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [JScript]

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

Parameters [Visual Basic, C#, C++]

index
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.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException The index parameter is outside the valid range of indexes for the collection.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

X509CertificateCollection Class | X509CertificateCollection Members | System.Security.Cryptography.X509Certificates Namespace

Show:
© 2016 Microsoft