Share via


Add Method of the SearchPathCollection Object

Add Method of the SearchPathCollection Object

Adds a directory to the search path collection. For example, if the directory parameter has the value "MyDir", this method adds the search path ".\Mydir" to the end of the collection of search paths. If the file name includes environmental variables, they are expanded.

  [C#]
public void Add(
  String directory
);

FakePre-d2212803d58a4237b864c84b867e200c-1f96970730504503ba9fcf699d7e0370

Parameters

  • directory
    Directory to add to the search path collection.

Return Value

This method does not return a value.

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
SearchPathCollection

Send comments about this topic to Microsoft

Build date: 10/2/2007