Skip to main content

TableIndexedCollection Class

Collection for tables.

Methods

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.

Properties

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

Add(table) Method

Adds a table to the collection.

Declaration

public void Add(
Table table
)

Parameters

ParameterTypeDescription
tableTableTable to add to the collection.

Remarks

Indexes the table by name.

Clear() Method

Clear the tables from the collection.

Declaration

public void Clear()

Contains(table) Method

Determines if a table is in the collection.

Declaration

public bool Contains(
Table table
)

Parameters

ParameterTypeDescription
tableTableTable to check if it is in the collection.

Return value

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

CopyTo(array, arrayIndex) Method

Copies the collection into an array.

Declaration

public void CopyTo(
Table[] array,
int arrayIndex
)

Parameters

ParameterTypeDescription
arrayTable[]Array to copy the collection into.
arrayIndexintIndex to start copying from.

GetEnumerator() Method

Gets an enumerator over the whole collection.

Declaration

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

Return value

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

Remove(tableName) Method

Remove a table from the collection by name.

Declaration

public void Remove(
string tableName
)

Parameters

ParameterTypeDescription
tableNamestringTable name to remove from the collection.

Remove(table) Method

Remove a table from the collection.

Declaration

public bool Remove(
Table table
)

Parameters

ParameterTypeDescription
tableTableTable with matching name to remove from the collection.

Count Property

Gets the number of items in the collection.

Declaration

public int Count { get; set; } 

IsReadOnly Property

Table indexed collection is never read only.

Declaration

public bool IsReadOnly { get; set; } 

Item Property

Gets a table by name.

Declaration

public Table Item[
string tableName
] { get; set; }

Parameters

ParameterTypeDescription
tableNamestringName of table to locate.