Skip to content

TableDefinitionCollection Class

Collection for table definitions indexed by table name.

Methods

MethodDescription
Add(tableDefinition)Adds a table definition to the collection.
Clear()Removes all table definitions from the collection.
Contains(tableName)Checks if the collection contains a table name.
Contains(table)Checks if the collection contains a table.
CopyTo(array, index)Copies table definitions to an arry.
GetEnumerator()Gets enumerator for the collection.
Remove(table)Removes a table definition from the collection.

Properties

PropertyDescription
CountGets the number of items in the collection.
IsReadOnlyTable definition collections are never read-only.
ItemGets a table definition by name.
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Add(tableDefinition) Method {#add_tabledefinition}

Adds a table definition to the collection.

Declaration

public void Add(
TableDefinition tableDefinition
)

Parameters

ParameterTypeDescription
tableDefinitionTableDefinitionTable definition to add to the collection.

Clear() Method {#clear_nop}

Removes all table definitions from the collection.

Declaration

public void Clear()

Contains(tableName) Method {#contains_tablename}

Checks if the collection contains a table name.

Declaration

public bool Contains(
string tableName
)

Parameters

ParameterTypeDescription
tableNamestringThe table to check in the collection.

Return value

bool True if collection contains the table.

Contains(table) Method {#contains_table}

Checks if the collection contains a table.

Declaration

public bool Contains(
TableDefinition table
)

Parameters

ParameterTypeDescription
tableTableDefinitionThe table to check in the collection.

Return value

bool True if collection contains the table.

CopyTo(array, index) Method {#copyto_array_index}

Copies table definitions to an arry.

Declaration

public void CopyTo(
TableDefinition[] array,
int index
)

Parameters

ParameterTypeDescription
arrayTableDefinition[]Array to copy the table definitions to.
indexintIndex in the array to start copying at.

GetEnumerator() Method {#getenumerator_nop}

Gets enumerator for the collection.

Declaration

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

Return value

IEnumerator<WixToolset.Data.WindowsInstaller.TableDefinition> Enumerator for the collection.

Remove(table) Method {#remove_table}

Removes a table definition from the collection.

Declaration

public bool Remove(
TableDefinition table
)

Parameters

ParameterTypeDescription
tableTableDefinitionTable to remove from the collection.

Return value

bool True if the table definition existed in the collection and was removed.

Count Property {#count}

Gets the number of items in the collection.

Declaration

public int Count { get; set; }

IsReadOnly Property {#isreadonly}

Table definition collections are never read-only.

Declaration

public bool IsReadOnly { get; set; }

Item Property {#item}

Gets a table definition by name.

Declaration

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

Parameters

ParameterTypeDescription
tableNamestringName of table to locate.