IScriptCollection

class

IScriptCollection.

IScriptCollection

Bases: object

Defines methods to manipulate generic collections.

Parameters

T -- The type of the elements in the collection.

Type

T

add

item

Adds an item to the IScriptCollection{T} .

Parameters

item (T) -- The object to add to the IScriptCollection{T} .

Reports

System.NotSupportedException -- The IScriptCollection{T} is read-only.

clear

Removes the items from the IScriptCollection{T} .

Reports

System.NotSupportedException -- The IScriptCollection{T} is read-only.

contains

item

Determines whether the IScriptCollection{T} contains a specific value.

Returns

true if item is found in the IScriptCollection{T} ; otherwise, false.

Return type

bool

Parameters

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.

Parameters
  • 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.

Reports
  • 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} .

Returns

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} .

Return type

bool

Parameters

item (T) -- The object to remove from the IScriptCollection{T} .

Reports

System.NotSupportedException -- The IScriptCollection{T} is read-only.

count

Gets the number of elements contained in the IScriptCollection{T} .

Returns

The number of elements contained in the IScriptCollection{T} .

Return type

int

is_readonly

Gets a value indicating whether the IScriptCollection{T} is read-only.

Returns

true if the IScriptCollection{T} is read-only; otherwise, false.

Return type

bool