ResolveFile Method of the SearchPathCollection Object

ResolveFile Method of the SearchPathCollection Object

Finds the specified file in the search path and returns the file's fully qualified path. If the file name includes environmental variables, they are expanded.

  [C#]
public String ResolveFile(
  String filename
);

FakePre-5e36d0f1c7ce4a6fad80129a92b2864e-890e990cd63c4e47b36313509dfb16ca

Parameters

  • filename
    Name of file to search for.

Return Value

The fully-qualified path of the specified file. If the file is not found, it throws a FileNotFoundException.

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