Skip to content

ColumnCollection Class

Collection of column information related to a «see T:WixToolset.Dtf.WindowsInstaller.TableInfo» or «see T:WixToolset.Dtf.WindowsInstaller.View» .

MethodDescription
Add(item)Not supported because the collection is read-only.
Clear()Not supported because the collection is read-only.
Contains(columnName)Checks if a column with a given name exists in the collection.
CopyTo(array, arrayIndex)Copies the columns from this collection into an array.
GetEnumerator()Gets an enumerator over the columns in the collection.
IndexOf(columnName)Gets the index of a column within the collection.
PropertyDescription
CountGets the number of columns in the collection.
FormatStringGets a string suitable for printing all the values of a record containing these columns.
IsReadOnlyGets a boolean value indicating whether the collection is read-only. A ColumnCollection is read-only if it is associated with a «see T:WixToolset.Dtf.WindowsInstaller.View» or a read-only «see T:WixToolset.Dtf.WindowsInstaller.Database» .
ItemGets information about a specific column in the collection.
ItemGets information about a specific column in the collection.
WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Not supported because the collection is read-only.

public void Add(
ColumnInfo item
)
ParameterTypeDescription
itemColumnInfoinformation about the column being added
ExceptionDescription
T:System.InvalidOperationExceptionthe collection is read-only

Not supported because the collection is read-only.

public void Clear()
ExceptionDescription
T:System.InvalidOperationExceptionthe collection is read-only

Checks if a column with a given name exists in the collection.

public bool Contains(
string columnName
)
ParameterTypeDescription
columnNamestringcase-sensitive name of the column to look for

bool true if the column exists in the collection, false otherwise

Copies the columns from this collection into an array.

public void CopyTo(
ColumnInfo[] array,
int arrayIndex
)
ParameterTypeDescription
arrayColumnInfo[]destination array to be filed
arrayIndexintoffset into the destination array where copying begins

Gets an enumerator over the columns in the collection.

public IEnumerator<WixToolset.Dtf.WindowsInstaller.ColumnInfo> GetEnumerator()

IEnumerator<WixToolset.Dtf.WindowsInstaller.ColumnInfo> An enumerator of ColumnInfo objects.

Gets the index of a column within the collection.

public int IndexOf(
string columnName
)
ParameterTypeDescription
columnNamestringcase-sensitive name of the column to look for

int 0-based index of the column, or -1 if not found

Gets the number of columns in the collection.

public int Count { get; set; }

Gets a string suitable for printing all the values of a record containing these columns.

public string FormatString { get; set; }

Gets a boolean value indicating whether the collection is read-only. A ColumnCollection is read-only if it is associated with a «see T:WixToolset.Dtf.WindowsInstaller.View» or a read-only «see T:WixToolset.Dtf.WindowsInstaller.Database» .

public bool IsReadOnly { get; set; }

Gets information about a specific column in the collection.

public ColumnInfo Item[
int columnIndex
] { get; set; }
ParameterTypeDescription
columnIndexint1-based index into the column collection
ExceptionDescription
T:System.ArgumentOutOfRangeExceptionis less
than 1 or greater than the number of columns in the collection |

Gets information about a specific column in the collection.

public ColumnInfo Item[
string columnName
] { get; set; }
ParameterTypeDescription
columnNamestringcase-sensitive name of a column collection
ExceptionDescription
T:System.ArgumentOutOfRangeExceptiondoes
not exist in the collection |