SearchPathCollection

SearchPathCollection

Represents a collection of directories that make up the search path.

The SearchPathCollection class implements the following interfaces:

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()

ReferenceEquals(Object, Object)

Static (Shared).

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()

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()

MemberwiseClone()

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

Send comments about this topic to Microsoft

Build date: 10/2/2007