TableDefinitionCollection Class
Collection for table definitions indexed by table name.
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
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.2+aa65968c419420d32e3e1b647aea0082f5ca5b78
Add(tableDefinition) Method
Adds a table definition to the collection.
Declaration
public void Add(
TableDefinition tableDefinition
)
Parameters
Parameter | Type | Description |
---|---|---|
tableDefinition | TableDefinition | Table definition to add to the collection. |
Clear() Method
Removes all table definitions from the collection.
Declaration
public void Clear()
Contains(tableName) Method
Checks if the collection contains a table name.
Declaration
public bool Contains(
string tableName
)
Parameters
Parameter | Type | Description |
---|---|---|
tableName | string | The table to check in the collection. |
Return value
bool
True if collection contains the table.
Contains(table) Method
Checks if the collection contains a table.
Declaration
public bool Contains(
TableDefinition table
)
Parameters
Parameter | Type | Description |
---|---|---|
table | TableDefinition | The table to check in the collection. |
Return value
bool
True if collection contains the table.
CopyTo(array, index) Method
Copies table definitions to an arry.
Declaration
public void CopyTo(
TableDefinition[] array,
int index
)
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
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
Removes a table definition from the collection.
Declaration
public bool Remove(
TableDefinition table
)
Parameters
Parameter | Type | Description |
---|---|---|
table | TableDefinition | Table to remove from the collection. |
Return value
bool
True if the table definition existed in the collection and was removed.
Count Property
Gets the number of items in the collection.
Declaration
public int Count { get; set; }
IsReadOnly Property
Table definition collections are never read-only.
Declaration
public bool IsReadOnly { get; set; }
Item Property
Gets a table definition by name.
Declaration
public TableDefinition Item[
string tableName
] { get; set; }
Parameters
Parameter | Type | Description |
---|---|---|
tableName | string | Name of table to locate. |