Skip to main content

InstallPathCollection Class

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

Methods

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.

Properties

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.2+aa65968c419420d32e3e1b647aea0082f5ca5b78

Add(item) Method

Adds a new child path to the collection.

Declaration

public void Add(
InstallPath item
)

Parameters

ParameterTypeDescription
itemInstallPathThe InstallPath to add.

Clear() Method

Removes all items from the collection.

Declaration

public void Clear()

Contains(item) Method

Tests if the collection contains a child path.

Declaration

public bool Contains(
InstallPath item
)

Parameters

ParameterTypeDescription
itemInstallPathThe InstallPath to search for.

Return value

bool true if the item is found; false otherwise

CopyTo(array, index) Method

Copies the collection into an array.

Declaration

public void CopyTo(
InstallPath[] array,
int index
)

Parameters

ParameterTypeDescription
arrayInstallPath[]The array to copy into.
indexintThe starting index in the destination array.

GetEnumerator() Method

Gets an enumerator over all items in the collection.

Declaration

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

Return value

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

IndexOf(item) Method

Gets the index of a child path in the collection.

Declaration

public int IndexOf(
InstallPath item
)

Parameters

ParameterTypeDescription
itemInstallPathThe InstallPath to search for.

Return value

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

Insert(index, item) Method

Inserts a child path into the collection.

Declaration

public void Insert(
int index,
InstallPath item
)

Parameters

ParameterTypeDescription
indexintThe insertion index.
itemInstallPathThe InstallPath to insert.

Remove(item) Method

Removes a child path to the collection.

Declaration

public bool Remove(
InstallPath item
)

Parameters

ParameterTypeDescription
itemInstallPathThe InstallPath to remove.

RemoveAt(index) Method

Removes an item from the collection.

Declaration

public void RemoveAt(
int index
)

Parameters

ParameterTypeDescription
indexintThe index of the item to remove.

Count Property

Gets the number of items in the collection.

Declaration

public int Count { get; set; } 

Item Property

Gets or sets the element at the specified index.

Declaration

public InstallPath Item { get; set; }