TableIndexedCollection Class
Collection for tables.
Methods
Section titled “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
Section titled “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 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8 |
Add(table) Method
Section titled “Add(table) Method”Adds a table to the collection.
Declaration
Section titled “Declaration”public void Add( Table table)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| table | Table | Table to add to the collection. |
Remarks
Section titled “Remarks”Indexes the table by name.
Clear() Method
Section titled “Clear() Method”Clear the tables from the collection.
Declaration
Section titled “Declaration”public void Clear()Contains(table) Method
Section titled “Contains(table) Method”Determines if a table is in the collection.
Declaration
Section titled “Declaration”public bool Contains( Table table)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| table | Table | Table to check if it is in the collection. |
Return value
Section titled “Return value”bool True if the table name is in the collection, otherwise false.
CopyTo(array, arrayIndex) Method
Section titled “CopyTo(array, arrayIndex) Method”Copies the collection into an array.
Declaration
Section titled “Declaration”public void CopyTo( Table[] array, int arrayIndex)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| array | Table[] | Array to copy the collection into. |
| arrayIndex | int | Index to start copying from. |
GetEnumerator() Method
Section titled “GetEnumerator() Method”Gets an enumerator over the whole collection.
Declaration
Section titled “Declaration”public IEnumerator<WixToolset.Data.WindowsInstaller.Table> GetEnumerator()Return value
Section titled “Return value”IEnumerator<WixToolset.Data.WindowsInstaller.Table> Collection enumerator.
Remove(tableName) Method
Section titled “Remove(tableName) Method”Remove a table from the collection by name.
Declaration
Section titled “Declaration”public void Remove( string tableName)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| tableName | string | Table name to remove from the collection. |
Remove(table) Method
Section titled “Remove(table) Method”Remove a table from the collection.
Declaration
Section titled “Declaration”public bool Remove( Table table)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| table | Table | Table with matching name to remove from the collection. |
Count Property
Section titled “Count Property”Gets the number of items in the collection.
Declaration
Section titled “Declaration”public int Count { get; set; }IsReadOnly Property
Section titled “IsReadOnly Property”Table indexed collection is never read only.
Declaration
Section titled “Declaration”public bool IsReadOnly { get; set; }Item Property
Section titled “Item Property”Gets a table by name.
Declaration
Section titled “Declaration”public Table Item[ string tableName] { get; set; }Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| tableName | string | Name of table to locate. |