14 public Oid this[
int index]
18 return m_list[index] as
Oid;
25 public Oid this[
string oid]
34 foreach (
Oid item
in m_list)
36 if (item.Value == text)
47 public int Count => m_list.Count;
69 return m_list.Add(oid);
105 if (index < 0 || index >= array.Length)
107 throw new ArgumentOutOfRangeException(
"index", SR.GetString(
"ArgumentOutOfRange_Index"));
109 if (index +
Count > array.Length)
111 throw new ArgumentException(SR.GetString(
"Argument_InvalidOffLen"));
113 for (
int i = 0; i <
Count; i++)
115 array.SetValue(
this[i], index);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Represents a collection of T:System.Security.Cryptography.Oid objects. This class cannot be inherited...
object SyncRoot
Gets an object that can be used to synchronize access to the T:System.Security.Cryptography....
Represents a cryptographic object identifier. This class cannot be inherited.
int Count
Gets the number of T:System.Security.Cryptography.Oid objects in a collection.
OidGroup
Identifies Windows cryptographic object identifier (OID) groups.
bool IsSynchronized
Gets a value that indicates whether access to the T:System.Security.Cryptography.OidCollection object...
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
IEnumerator GetEnumerator()
Returns an enumerator that iterates through a collection.
The exception that is thrown when one of the arguments provided to a method is not valid.
OidEnumerator GetEnumerator()
Returns an T:System.Security.Cryptography.OidEnumerator object that can be used to navigate the T:Sys...
int Add(Oid oid)
Adds an T:System.Security.Cryptography.Oid object to the T:System.Security.Cryptography....
Provides the ability to navigate through an T:System.Security.Cryptography.OidCollection object....
void CopyTo(Oid[] array, int index)
Copies the T:System.Security.Cryptography.OidCollection object into an array.
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.
OidCollection()
Initializes a new instance of the T:System.Security.Cryptography.OidCollection class.
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...