_Solution.FindProjectItem Method
Visual Studio 2012
Locates an item in a project.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Parameters
- FileName
- Type: System.String
Required. The name of the project item.
FindProjectItem performs an ItemOperations.OpenFile type search for the given file name. The first project found to have the item returns its ProjectItem object for the name. If the file is not found in the solution, null is returned.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.