SearchPathCollection class [SDM]
| SDM Reference |
SearchPathCollection
Represents a collection of directories that make up the search path.
The SearchPathCollection class implements the following interfaces:
- System.Collections.ICollection
- System.Collections.IEnumerable
Public Constructors
The SearchPathCollection class has the following public constructor.
| Constructor | Description |
|---|---|
| SearchPathCollection() | Initializes a new instance of the SearchPathCollection class. |
Public Methods
The SearchPathCollection class has the following public methods.
| Method | Description |
|---|---|
| Add(String) | Adds a directory to the search path collection. |
| Contains(Object) | Determines whether a specific item is in the search path collection. |
| CopyTo(Array, Int32) | Copies all of the search path collection to a compatible one-dimensional array starting at the specified index of the target array. |
| Equals(Object) | Determines whether the specified Object is equal to the current Object. |
| Equals(Object, Object) | Static (Shared). Determines whether the specified Object instances are considered equal. |
| GetEnumerator() | Returns an IEnumerator that can iterate through this search path collection. |
| GetHashCode() | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures such as a hash table. |
| GetType() |
Gets the Type of the current instance. |
| ReferenceEquals(Object, Object) | Static (Shared). Determines whether the specified Object instances are the same instance. |
| Remove(String) | Removes the specified directory from the search path. |
| ResolveFile(String) | Finds the specified file in the search path and returns the file's fully-qualified path. |
| ToString() |
Returns a String that represents the current Object. |
Public Properties
The SearchPathCollection class has the following public properties.
| Property | Description |
|---|---|
| Count | Data type: Int32 Access type: Read-only Gets the number of items actually in the search path collection. |
| IsSynchronized | Data type: Boolean Access type: Read-only Gets a value indicating whether access to the search path collection is synchronized (thread-safe). |
| Item | Data type: String Access type: Read-only Gets a directory in the search path specified by index. |
| SyncRoot | Data type: Object Access type: Read-only Gets an object that can be used to synchronize access to the search path collection. |
Protected Methods
The SearchPathCollection class has the following protected methods.
| Method | Description |
|---|---|
| Finalize() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. |
| MemberwiseClone() |
Creates a shallow copy of the current Object. |
Protected Fields
The SearchPathCollection class defines the following protected field.
| Field | Description |
|---|---|
| collection | Data type: ArrayList Access type: Read/write Represents an internal collection that contains the data. |
Requirements
| Namespace | Defined in Microsoft.SystemDefinitionModel.Tools. |
| Assembly | Requires SdmCompile (in SdmCompile.dll). |
| .NET Framework | Requires .NET Framework 2.0. |
See Also
Microsoft.SystemDefinitionModel.Tools
| Last updated: November 2005 | What did you think of this topic? | Order a Platform SDK CD |
| © Microsoft Corporation. All rights reserved. Terms of use. |