X509CertificateCollection.Item Property
Gets a X509Certificate object at a specific index from the current X509CertificateCollection.
Namespace: Microsoft.Web.Services2.Security.X509
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim x509CertificateCollection1 As X509CertificateCollection
Dim key As Integer
Dim returnValue As X509Certificate
returnValue = x509CertificateCollection1.Item(key)
Syntax
'Declaration
Public ReadOnly Property Item( _
ByVal index As Integer _
) As X509Certificate
public X509Certificate this[
int index
] {get;}
public: property X509Certificate^ Item{
X509Certificate^ get();
}
public X509Certificate get_Item(
int index
);
In JScript, you can use Indexed Properties defined by a class, but you cannot define your own.
Parameters
- index
The zero-based index of the X509Certificate to retrieve.
Property Value
A X509Certificate object residing in a specific index of the current X509CertificateCollection.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | indexis smaller than 0 or larger that the total number of X509Certificate in the current X509CertificateCollection . |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
X509CertificateCollection Class
Microsoft.Web.Services2.Security.X509 Namespace