Solution2::FindProjectItem Method (String^)

 

Locates an item in a project.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

ProjectItem^ FindProjectItem(
	String^ FileName
)

Parameters

FileName
Type: System::String^

Required. The name of the project item.

Return Value

Type: EnvDTE::ProjectItem^

A ProjectItem object.

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.

No code example is currently available or this language may not be supported.
Return to top
Show: