Skip to content

InstallPathCollection Class

Represents a collection of InstallPaths that are the child paths of the same parent directory.

MethodDescription
Add(item)Adds a new child path to the collection.
Clear()Removes all items from the collection.
Contains(item)Tests if the collection contains a child path.
CopyTo(array, index)Copies the collection into an array.
GetEnumerator()Gets an enumerator over all items in the collection.
IndexOf(item)Gets the index of a child path in the collection.
Insert(index, item)Inserts a child path into the collection.
Remove(item)Removes a child path to the collection.
RemoveAt(index)Removes an item from the collection.
PropertyDescription
CountGets the number of items in the collection.
ItemGets or sets the element at the specified index.
WixToolset.Dtf.WindowsInstaller.Package.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Adds a new child path to the collection.

public void Add(
InstallPath item
)
ParameterTypeDescription
itemInstallPathThe InstallPath to add.

Removes all items from the collection.

public void Clear()

Tests if the collection contains a child path.

public bool Contains(
InstallPath item
)
ParameterTypeDescription
itemInstallPathThe InstallPath to search for.

bool true if the item is found; false otherwise

Copies the collection into an array.

public void CopyTo(
InstallPath[] array,
int index
)
ParameterTypeDescription
arrayInstallPath[]The array to copy into.
indexintThe starting index in the destination array.

Gets an enumerator over all items in the collection.

public IEnumerator<WixToolset.Dtf.WindowsInstaller.Package.InstallPath> GetEnumerator()

IEnumerator<WixToolset.Dtf.WindowsInstaller.Package.InstallPath> An enumerator for the collection.

Gets the index of a child path in the collection.

public int IndexOf(
InstallPath item
)
ParameterTypeDescription
itemInstallPathThe InstallPath to search for.

int The index of the item, or -1 if not found.

Inserts a child path into the collection.

public void Insert(
int index,
InstallPath item
)
ParameterTypeDescription
indexintThe insertion index.
itemInstallPathThe InstallPath to insert.

Removes a child path to the collection.

public bool Remove(
InstallPath item
)
ParameterTypeDescription
itemInstallPathThe InstallPath to remove.

Removes an item from the collection.

public void RemoveAt(
int index
)
ParameterTypeDescription
indexintThe index of the item to remove.

Gets the number of items in the collection.

public int Count { get; set; }

Gets or sets the element at the specified index.

public InstallPath Item { get; set; }