26 if (index >= m_elements.Length)
30 return m_elements[index];
36 public int Count => m_elements.Length;
53 CAPIBase.CERT_SIMPLE_CHAIN cERT_SIMPLE_CHAIN =
new CAPIBase.CERT_SIMPLE_CHAIN(
Marshal.
SizeOf(typeof(CAPIBase.CERT_SIMPLE_CHAIN)));
60 m_elements =
new X509ChainElement[cERT_SIMPLE_CHAIN.cElement];
61 for (
int i = 0; i < m_elements.Length; i++)
99 if (index < 0 || index >= array.Length)
103 if (index +
Count > array.Length)
105 throw new ArgumentException(SR.GetString(
"Argument_InvalidOffLen"));
107 for (
int i = 0; i <
Count; i++)
109 array.SetValue(
this[i], index);
static int ReadInt32([In] [MarshalAs(UnmanagedType.AsAny)] object ptr, int ofs)
Reads a 32-bit signed integer at a given offset from unmanaged memory.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
X509ChainElementEnumerator GetEnumerator()
Gets an T:System.Security.Cryptography.X509Certificates.X509ChainElementEnumerator object that can be...
object SyncRoot
Gets an object that can be used to synchronize access to an T:System.Security.Cryptography....
Supports a simple iteration over an T:System.Security.Cryptography.X509Certificates....
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.
Represents a collection of T:System.Security.Cryptography.X509Certificates.X509ChainElement objects....
int Count
Gets the number of elements in the collection.
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Represents an element of an X.509 chain.
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.
void CopyTo(X509ChainElement[] array, int index)
Copies an T:System.Security.Cryptography.X509Certificates.X509ChainElementCollection object into an a...
The exception that is thrown when one of the arguments provided to a method is not valid.
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.
void CopyTo(Array array, int index)
Copies the elements of the T:System.Collections.ICollection to an T:System.Array, starting at a parti...
Supports a simple iteration over a non-generic collection.
static IntPtr ReadIntPtr([In] [MarshalAs(UnmanagedType.AsAny)] object ptr, int ofs)
Reads a processor native sized integer from unmanaged memory.
bool IsSynchronized
Gets a value indicating whether the collection of chain elements is synchronized.