Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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
- index
Type: System. . :: . .Int32
The zero-based index of the element to get or set.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.