InstallPathCollection Class
Represents a collection of InstallPaths that are the child paths of the same parent directory.
Methods
| Method | Description | 
|---|---|
| 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
| Property | Description | 
|---|---|
| Count | Gets the number of items in the collection. | 
| Item | Gets or sets the element at the specified index. | 
WixToolset.Dtf.WindowsInstaller.Package.dll version 6.0.0+8c7432e50072e009353ea5f2c956ccf453476f71
Add(item) Method
Adds a new child path to the collection.
Declaration
public void Add(
  InstallPath item
)
Parameters
| Parameter | Type | Description | 
|---|---|---|
| item | InstallPath | The 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
| Parameter | Type | Description | 
|---|---|---|
| item | InstallPath | The 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
| Parameter | Type | Description | 
|---|---|---|
| array | InstallPath[] | The array to copy into. | 
| index | int | The 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
| Parameter | Type | Description | 
|---|---|---|
| item | InstallPath | The 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
| Parameter | Type | Description | 
|---|---|---|
| index | int | The insertion index. | 
| item | InstallPath | The InstallPath to insert. | 
Remove(item) Method
Removes a child path to the collection.
Declaration
public bool Remove(
  InstallPath item
)
Parameters
| Parameter | Type | Description | 
|---|---|---|
| item | InstallPath | The InstallPath to remove. | 
RemoveAt(index) Method
Removes an item from the collection.
Declaration
public void RemoveAt(
  int index
)
Parameters
| Parameter | Type | Description | 
|---|---|---|
| index | int | The 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; }