Solution4::FindProjectItem Method (String^)

 

Locates an item in a project.

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

ProjectItem^ FindProjectItem(
	String^ FileName
)

Parameters

FileName
Type: System::String^

Required. The name of the project item to locate.

Return Value

Type: EnvDTE::ProjectItem^

A ProjectItem object.

FindProjectItem performs an 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: