Windows apps
Collapse the table of content
Expand the table of content

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)

public:
property X509Certificate2^ Item[int index] {
	X509Certificate2^ get (int index);
	void set (int index, X509Certificate2^ value);
}

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.

ExceptionCondition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than the Count property.

ArgumentNullException

index is nullNothingnullptrunita null reference (Nothing in Visual Basic).

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

Show:
© 2017 Microsoft