Skip to 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.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Add(item) Method {#add_item}

Adds a new child path to the collection.

Declaration

public void Add(
InstallPath item
)

Parameters

ParameterTypeDescription
itemInstallPathThe InstallPath to add.

Clear() Method {#clear_nop}

Removes all items from the collection.

Declaration

public void Clear()

Contains(item) Method {#contains_item}

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 {#copyto_array_index}

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 {#getenumerator_nop}

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 {#indexof_item}

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 {#insert_index_item}

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 {#remove_item}

Removes a child path to the collection.

Declaration

public bool Remove(
InstallPath item
)

Parameters

ParameterTypeDescription
itemInstallPathThe InstallPath to remove.

RemoveAt(index) Method {#removeat_index}

Removes an item from the collection.

Declaration

public void RemoveAt(
int index
)

Parameters

ParameterTypeDescription
indexintThe index of the item to remove.

Count Property {#count}

Gets the number of items in the collection.

Declaration

public int Count { get; set; }

Item Property {#item}

Gets or sets the element at the specified index.

Declaration

public InstallPath Item { get; set; }