40 public int Count => m_list.Count;
58 m_globalFlags = globalFlags;
68 if (accessEntry ==
null)
72 int num = m_list.IndexOf(accessEntry);
75 if (accessEntry.
Flags != m_globalFlags)
77 return m_list.Add(accessEntry);
96 return m_list.IndexOf(accessEntry);
105 if (accessEntry ==
null)
109 m_list.Remove(accessEntry);
145 if (index < 0 || index >= array.Length)
147 throw new ArgumentOutOfRangeException(
"index", Environment.GetResourceString(
"ArgumentOutOfRange_Index"));
149 if (index +
Count > array.Length)
151 throw new ArgumentException(Environment.GetResourceString(
"Argument_InvalidOffLen"));
153 for (
int i = 0; i <
Count; i++)
155 array.SetValue(
this[i], index);
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
void CopyTo(KeyContainerPermissionAccessEntry[] array, int index)
Copies the elements of the collection to a compatible one-dimensional array, starting at the specifie...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
Specifies access rights for specific key containers. This class cannot be inherited.
object SyncRoot
Gets an object that can be used to synchronize access to the collection.
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
Provides information about, and means to manipulate, the current environment and platform....
int Count
Gets the number of items in the collection.
int Add(KeyContainerPermissionAccessEntry accessEntry)
Adds a T:System.Security.Permissions.KeyContainerPermissionAccessEntry object to the collection.
int IndexOf(KeyContainerPermissionAccessEntry accessEntry)
Gets the index in the collection of the specified T:System.Security.Permissions.KeyContainerPermissio...
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
KeyContainerPermissionFlags
Specifies the type of key container access allowed.
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.
void Clear()
Removes all the T:System.Security.Permissions.KeyContainerPermissionAccessEntry objects from the coll...
KeyContainerPermissionAccessEntryEnumerator GetEnumerator()
Returns a T:System.Security.Permissions.KeyContainerPermissionAccessEntryEnumerator object that can b...
Specifies that the class can be serialized.
Represents a collection of T:System.Security.Permissions.KeyContainerPermissionAccessEntry objects....
The exception that is thrown when a method call is invalid for the object's current state.
void Remove(KeyContainerPermissionAccessEntry accessEntry)
Removes the specified T:System.Security.Permissions.KeyContainerPermissionAccessEntry object from the...
bool IsSynchronized
Gets a value indicating whether the collection is synchronized (thread safe).
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...
KeyContainerPermissionFlags Flags
Gets or sets the key container permissions.
Supports a simple iteration over a non-generic collection.
Represents the enumerator for T:System.Security.Permissions.KeyContainerPermissionAccessEntry objects...
Implements the T:System.Collections.IList interface using an array whose size is dynamically increase...