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.

public void Add(Stringdirectory);
Public Sub Add( _
  ByVal directory As String _
)

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: 9/5/2007