Share via


Item Property

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

Gets or sets the element at the specified index.

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

Syntax

'Declaration
Public Property Item ( _
    index As Integer _
) As X509Certificate2
public X509Certificate2 this[
    int index
] { get; set; }
public:
property X509Certificate2^ Item[int index] {
    X509Certificate2^ get (int index);
    void set (int index, X509Certificate2^ value);
}
member Item : 
        index:int -> X509Certificate2 with get, set
JScript does not support indexed properties.

Parameters

Property Value

Type: System.Security.Cryptography.X509Certificates. . :: . .X509Certificate2
The element at the specified index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than the Count property.

ArgumentNullException

index is null Nothing nullptr unit a null reference (Nothing in Visual Basic) .

Remarks

This property provides the ability to access a specific element in the collection by using the following syntax: myCollection[index].

.NET Framework Security

See Also

Reference

X509Certificate2Collection Class

System.Security.Cryptography.X509Certificates Namespace