Skip to content

TableDefinitionCollection Class

Collection for table definitions indexed by table name.

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

Adds a table definition to the collection.

public void Add(
TableDefinition tableDefinition
)
ParameterTypeDescription
tableDefinitionTableDefinitionTable definition to add to the collection.

Removes all table definitions from the collection.

public void Clear()

Checks if the collection contains a table name.

public bool Contains(
string tableName
)
ParameterTypeDescription
tableNamestringThe table to check in the collection.

bool True if collection contains the table.

Checks if the collection contains a table.

public bool Contains(
TableDefinition table
)
ParameterTypeDescription
tableTableDefinitionThe table to check in the collection.

bool True if collection contains the table.

Copies table definitions to an arry.

public void CopyTo(
TableDefinition[] array,
int index
)
ParameterTypeDescription
arrayTableDefinition[]Array to copy the table definitions to.
indexintIndex in the array to start copying at.

Gets enumerator for the collection.

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

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

Removes a table definition from the collection.

public bool Remove(
TableDefinition table
)
ParameterTypeDescription
tableTableDefinitionTable to remove from the collection.

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

Gets the number of items in the collection.

public int Count { get; set; }

Table definition collections are never read-only.

public bool IsReadOnly { get; set; }

Gets a table definition by name.

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