Edit

Share via


X509ExtensionCollection.Item[] Property

Definition

Gets an X509Extension object from a X509ExtensionCollection object.

Overloads

Item[Int32]

Gets the X509Extension object at the specified index.

Item[String]

Gets the first X509Extension object whose value or friendly name is specified by an object identifier (OID).

Item[Int32]

Source:
X509ExtensionCollection.cs
Source:
X509ExtensionCollection.cs
Source:
X509ExtensionCollection.cs

Gets the X509Extension object at the specified index.

public:
 property System::Security::Cryptography::X509Certificates::X509Extension ^ default[int] { System::Security::Cryptography::X509Certificates::X509Extension ^ get(int index); };
public System.Security.Cryptography.X509Certificates.X509Extension this[int index] { get; }
member this.Item(int) : System.Security.Cryptography.X509Certificates.X509Extension
Default Public ReadOnly Property Item(index As Integer) As X509Extension

Parameters

index
Int32

The location of the X509Extension object to retrieve.

Property Value

An X509Extension object.

Exceptions

index is less than zero.

index is equal to or greater than the length of the array.

Remarks

Use this property to get information about an X509Extension object when you know the location of the object in the X509ExtensionCollection object.

Applies to

Item[String]

Source:
X509ExtensionCollection.cs
Source:
X509ExtensionCollection.cs
Source:
X509ExtensionCollection.cs

Gets the first X509Extension object whose value or friendly name is specified by an object identifier (OID).

public:
 property System::Security::Cryptography::X509Certificates::X509Extension ^ default[System::String ^] { System::Security::Cryptography::X509Certificates::X509Extension ^ get(System::String ^ oid); };
public System.Security.Cryptography.X509Certificates.X509Extension? this[string oid] { get; }
public System.Security.Cryptography.X509Certificates.X509Extension this[string oid] { get; }
member this.Item(string) : System.Security.Cryptography.X509Certificates.X509Extension
Default Public ReadOnly Property Item(oid As String) As X509Extension

Parameters

oid
String

The object identifier (OID) of the extension to retrieve.

Property Value

An X509Extension object.

Remarks

Use this property to get information about an X509Extension object when you know the object identifier (OID) of the extension in the X509ExtensionCollection object.

Applies to