TableDefinitionCollection Class
Collection for table definitions indexed by table name.
Methods
Section titled “Methods”| Method | Description |
|---|---|
| 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
Section titled “Properties”| Property | Description |
|---|---|
| Count | Gets the number of items in the collection. |
| IsReadOnly | Table definition collections are never read-only. |
| Item | Gets a table definition by name. |
WixToolset.Data.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8 |
Add(tableDefinition) Method
Section titled “Add(tableDefinition) Method”Adds a table definition to the collection.
Declaration
Section titled “Declaration”public void Add( TableDefinition tableDefinition)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| tableDefinition | TableDefinition | Table definition to add to the collection. |
Clear() Method
Section titled “Clear() Method”Removes all table definitions from the collection.
Declaration
Section titled “Declaration”public void Clear()Contains(tableName) Method
Section titled “Contains(tableName) Method”Checks if the collection contains a table name.
Declaration
Section titled “Declaration”public bool Contains( string tableName)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| tableName | string | The table to check in the collection. |
Return value
Section titled “Return value”bool True if collection contains the table.
Contains(table) Method
Section titled “Contains(table) Method”Checks if the collection contains a table.
Declaration
Section titled “Declaration”public bool Contains( TableDefinition table)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| table | TableDefinition | The table to check in the collection. |
Return value
Section titled “Return value”bool True if collection contains the table.
CopyTo(array, index) Method
Section titled “CopyTo(array, index) Method”Copies table definitions to an arry.
Declaration
Section titled “Declaration”public void CopyTo( TableDefinition[] array, int index)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| array | TableDefinition[] | Array to copy the table definitions to. |
| index | int | Index in the array to start copying at. |
GetEnumerator() Method
Section titled “GetEnumerator() Method”Gets enumerator for the collection.
Declaration
Section titled “Declaration”public IEnumerator<WixToolset.Data.WindowsInstaller.TableDefinition> GetEnumerator()Return value
Section titled “Return value”IEnumerator<WixToolset.Data.WindowsInstaller.TableDefinition> Enumerator for the collection.
Remove(table) Method
Section titled “Remove(table) Method”Removes a table definition from the collection.
Declaration
Section titled “Declaration”public bool Remove( TableDefinition table)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| table | TableDefinition | Table to remove from the collection. |
Return value
Section titled “Return value”bool True if the table definition existed in the collection and was removed.
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 definition collections are never read-only.
Declaration
Section titled “Declaration”public bool IsReadOnly { get; set; }Item Property
Section titled “Item Property”Gets a table definition by name.
Declaration
Section titled “Declaration”public TableDefinition Item[ string tableName] { get; set; }Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| tableName | string | Name of table to locate. |