26 if (index >= m_list.Count)
48 if (
string.Compare(item.Oid.Value, text,
StringComparison.OrdinalIgnoreCase) == 0)
59 public int Count => m_list.Count;
79 CAPIBase.CERT_CONTEXT cERT_CONTEXT = *(CAPIBase.CERT_CONTEXT*)(
void*)safeCertContextHandle2.DangerousGetHandle();
80 CAPIBase.CERT_INFO cERT_INFO = (CAPIBase.CERT_INFO)
Marshal.
PtrToStructure(cERT_CONTEXT.pCertInfo, typeof(CAPIBase.CERT_INFO));
81 uint cExtension = cERT_INFO.cExtension;
82 IntPtr rgExtension = cERT_INFO.rgExtension;
83 for (uint num = 0u; num < cExtension; num++)
87 if (x509Extension2 !=
null)
89 x509Extension2.
CopyFrom(x509Extension);
90 x509Extension = x509Extension2;
103 if (extension ==
null)
107 return m_list.Add(extension);
143 if (index < 0 || index >= array.Length)
147 if (index +
Count > array.Length)
149 throw new ArgumentException(SR.GetString(
"Argument_InvalidOffLen"));
151 for (
int i = 0; i <
Count; i++)
153 array.SetValue(
this[i], index);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Oid Oid
Gets or sets the T:System.Security.Cryptography.Oid value for an T:System.Security....
Supports a simple iteration over a T:System.Security.Cryptography.X509Certificates....
StringComparison
Specifies the culture, case, and sort rules to be used by certain overloads of the M:System....
Represents an X509 extension.
static object CreateFromName(string name, params object[] args)
Creates a new instance of the specified cryptographic object with the specified arguments.
The exception that is thrown when the value of an argument is outside the allowable range of values a...
static int SizeOf(object structure)
Returns the unmanaged size of an object in bytes.
string Value
Gets or sets the dotted number of the identifier.
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Accesses the cryptography configuration information.
bool IsSynchronized
Gets a value indicating whether the collection is guaranteed to be thread safe.
Represents a collection of T:System.Security.Cryptography.X509Certificates.X509Extension objects....
A platform-specific type that is used to represent a pointer or a handle.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Provides a collection of methods for allocating unmanaged memory, copying unmanaged memory blocks,...
IEnumerator GetEnumerator()
Returns an enumerator that iterates through a collection.
X509ExtensionCollection()
Initializes a new instance of the T:System.Security.Cryptography.X509Certificates....
The exception that is thrown when one of the arguments provided to a method is not valid.
void CopyTo(X509Extension[] array, int index)
Copies a collection into an array starting at the specified index.
static void PtrToStructure(IntPtr ptr, object structure)
Marshals data from an unmanaged block of memory to a managed object.
X509ExtensionEnumerator GetEnumerator()
Returns an enumerator that can iterate through an T:System.Security.Cryptography.X509Certificates....
int Count
Gets the number of T:System.Security.Cryptography.X509Certificates.X509Extension objects in a T:Syste...
object SyncRoot
Gets an object that you can use to synchronize access to the T:System.Security.Cryptography....
The exception that is thrown when a method call is invalid for the object's current state.
Defines size, enumerators, and synchronization methods for all nongeneric collections.
override void CopyFrom(AsnEncodedData asnEncodedData)
Copies the extension properties of the specified T:System.Security.Cryptography.AsnEncodedData object...
void CopyTo(Array array, int index)
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a parti...
int Add(X509Extension extension)
Adds an T:System.Security.Cryptography.X509Certificates.X509Extension object to an T:System....
Supports a simple iteration over a non-generic collection.
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...