Skip to content

TableIndexedCollection Class

Collection for tables.

MethodDescription
Add(table)Adds a table to the collection.
Clear()Clear the tables from the collection.
Contains(table)Determines if a table is in the collection.
CopyTo(array, arrayIndex)Copies the collection into an array.
GetEnumerator()Gets an enumerator over the whole collection.
Remove(tableName)Remove a table from the collection by name.
Remove(table)Remove a table from the collection.
PropertyDescription
CountGets the number of items in the collection.
IsReadOnlyTable indexed collection is never read only.
ItemGets a table by name.
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Adds a table to the collection.

public void Add(
Table table
)
ParameterTypeDescription
tableTableTable to add to the collection.

Indexes the table by name.

Clear the tables from the collection.

public void Clear()

Determines if a table is in the collection.

public bool Contains(
Table table
)
ParameterTypeDescription
tableTableTable to check if it is in the collection.

bool True if the table name is in the collection, otherwise false.

Copies the collection into an array.

public void CopyTo(
Table[] array,
int arrayIndex
)
ParameterTypeDescription
arrayTable[]Array to copy the collection into.
arrayIndexintIndex to start copying from.

Gets an enumerator over the whole collection.

public IEnumerator<WixToolset.Data.WindowsInstaller.Table> GetEnumerator()

IEnumerator<WixToolset.Data.WindowsInstaller.Table> Collection enumerator.

Remove a table from the collection by name.

public void Remove(
string tableName
)
ParameterTypeDescription
tableNamestringTable name to remove from the collection.

Remove a table from the collection.

public bool Remove(
Table table
)
ParameterTypeDescription
tableTableTable with matching name to remove from the collection.

Gets the number of items in the collection.

public int Count { get; set; }

Table indexed collection is never read only.

public bool IsReadOnly { get; set; }

Gets a table by name.

public Table Item[
string tableName
] { get; set; }
ParameterTypeDescription
tableNamestringName of table to locate.