TableIndexedCollection Class
Collection for tables.
Methods
| Method | Description | 
|---|---|
| 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
| Property | Description | 
|---|---|
| Count | Gets the number of items in the collection. | 
| IsReadOnly | Table indexed collection is never read only. | 
| Item | Gets a table by name. | 
WixToolset.Data.dll version 6.0.0+8c7432e50072e009353ea5f2c956ccf453476f71
Add(table) Method
Adds a table to the collection.
Declaration
public void Add(
  Table table
)
Parameters
| Parameter | Type | Description | 
|---|---|---|
| table | Table | Table 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
| Parameter | Type | Description | 
|---|---|---|
| table | Table | Table 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
| Parameter | Type | Description | 
|---|---|---|
| array | Table[] | Array to copy the collection into. | 
| arrayIndex | int | Index 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
| Parameter | Type | Description | 
|---|---|---|
| tableName | string | Table name to remove from the collection. | 
Remove(table) Method
Remove a table from the collection.
Declaration
public bool Remove(
  Table table
)
Parameters
| Parameter | Type | Description | 
|---|---|---|
| table | Table | Table 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
| Parameter | Type | Description | 
|---|---|---|
| tableName | string | Name of table to locate. |