class
IScriptCollection.
IScriptCollection
Bases: object
Defines methods to manipulate generic collections.
T -- The type of the elements in the collection.
T
add
item
Adds an item to the IScriptCollection{T} .
item (T) -- The object to add to the IScriptCollection{T} .
System.NotSupportedException -- The IScriptCollection{T} is read-only.
clear
Removes the items from the IScriptCollection{T} .
System.NotSupportedException -- The IScriptCollection{T} is read-only.
contains
item
Determines whether the IScriptCollection{T} contains a specific value.
true if item is found in the IScriptCollection{T} ; otherwise, false.
bool
item (T) -- The object to locate in the IScriptCollection{T} .
copy_to
array
arrayIndex
Copies the elements of the IScriptCollection{T} to an T:System.Array , starting at a particular T:System.Array index.
array (T[]) -- The one-dimensional T:System.Array that is the destination of the elements copied from IScriptCollection{T} . The T:System.Array must have zero-based indexing.
arrayIndex (int) -- The zero-based index in array at which copying begins.
System.ArgumentNullException -- array is null.
System.ArgumentOutOfRangeException -- arrayIndex is less than 0.
System.ArgumentException -- The number of elements in the source IScriptCollection{T} is greater than the available space from arrayIndex to the end of the destination array .
remove
item
Removes the first occurrence of a specific object from the IScriptCollection{T} .
true if item was successfully removed from the IScriptCollection{T} ; otherwise, false. This method also returns false if item is not found in the original IScriptCollection{T} .
bool
item (T) -- The object to remove from the IScriptCollection{T} .
System.NotSupportedException -- The IScriptCollection{T} is read-only.
count
Gets the number of elements contained in the IScriptCollection{T} .
The number of elements contained in the IScriptCollection{T} .
int
is_readonly
Gets a value indicating whether the IScriptCollection{T} is read-only.
true if the IScriptCollection{T} is read-only; otherwise, false.
bool