InstallPathCollection Class
Represents a collection of InstallPaths that are the child paths of the same parent directory.
Methods
Section titled “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
Section titled “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 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8 |
Add(item) Method
Section titled “Add(item) Method”Adds a new child path to the collection.
Declaration
Section titled “Declaration”public void Add( InstallPath item)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| item | InstallPath | The InstallPath to add. |
Clear() Method
Section titled “Clear() Method”Removes all items from the collection.
Declaration
Section titled “Declaration”public void Clear()Contains(item) Method
Section titled “Contains(item) Method”Tests if the collection contains a child path.
Declaration
Section titled “Declaration”public bool Contains( InstallPath item)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| item | InstallPath | The InstallPath to search for. |
Return value
Section titled “Return value”bool true if the item is found; false otherwise
CopyTo(array, index) Method
Section titled “CopyTo(array, index) Method”Copies the collection into an array.
Declaration
Section titled “Declaration”public void CopyTo( InstallPath[] array, int index)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| array | InstallPath[] | The array to copy into. |
| index | int | The starting index in the destination array. |
GetEnumerator() Method
Section titled “GetEnumerator() Method”Gets an enumerator over all items in the collection.
Declaration
Section titled “Declaration”public IEnumerator<WixToolset.Dtf.WindowsInstaller.Package.InstallPath> GetEnumerator()Return value
Section titled “Return value”IEnumerator<WixToolset.Dtf.WindowsInstaller.Package.InstallPath> An enumerator for the collection.
IndexOf(item) Method
Section titled “IndexOf(item) Method”Gets the index of a child path in the collection.
Declaration
Section titled “Declaration”public int IndexOf( InstallPath item)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| item | InstallPath | The InstallPath to search for. |
Return value
Section titled “Return value”int The index of the item, or -1 if not found.
Insert(index, item) Method
Section titled “Insert(index, item) Method”Inserts a child path into the collection.
Declaration
Section titled “Declaration”public void Insert( int index, InstallPath item)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| index | int | The insertion index. |
| item | InstallPath | The InstallPath to insert. |
Remove(item) Method
Section titled “Remove(item) Method”Removes a child path to the collection.
Declaration
Section titled “Declaration”public bool Remove( InstallPath item)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| item | InstallPath | The InstallPath to remove. |
RemoveAt(index) Method
Section titled “RemoveAt(index) Method”Removes an item from the collection.
Declaration
Section titled “Declaration”public void RemoveAt( int index)Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
| index | int | The index of the item to remove. |
Count Property
Section titled “Count Property”Gets the number of items in the collection.
Declaration
Section titled “Declaration”public int Count { get; set; }Item Property
Section titled “Item Property”Gets or sets the element at the specified index.
Declaration
Section titled “Declaration”public InstallPath Item { get; set; }