scripting:api:project:is-file-in-project

IsFileInProject

Method of IProject

Checks if file is in project

var pbFound = Project.IsFileInProject(strFileName);
pbFound = Project.IsFileInProject strFileName
VARIANT_BOOL bFound;
HRESULT hr = Project.IsFileInProject(strFileName, &bFound);