Skip to content

ComponentInfoCollection Class

Accessor for information about components within the context of an installation session.

MethodDescription
Contains(component)Checks if the collection contains a component.
CopyTo(array, arrayIndex)Copies the features into an array.
GetEnumerator()Enumerates the components in the collection.
PropertyDescription
CountGets the number of components defined for the product.
ItemGets information about a component within the context of an installation session.
WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Checks if the collection contains a component.

public bool Contains(
string component
)
ParameterTypeDescription
componentstringname of the component

bool true if the component is in the collection, else false

Copies the features into an array.

public void CopyTo(
ComponentInfo[] array,
int arrayIndex
)
ParameterTypeDescription
arrayComponentInfo[]array that receives the features
arrayIndexintoffset into the array

Enumerates the components in the collection.

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

IEnumerator<WixToolset.Dtf.WindowsInstaller.ComponentInfo> an enumerator over all features in the collection

Gets the number of components defined for the product.

public int Count { get; set; }

Gets information about a component within the context of an installation session.

public ComponentInfo Item[
string component
] { get; set; }
ParameterTypeDescription
componentstringname of the component