Gets the full path and names of the files associated with a project item.
Assembly: EnvDTE (in EnvDTE.dll)
Most project items have only one file associated with them, but some languages can occasionally have multiple files per item. For example, a ProjectItem for a form in Visual Basic and Visual C# represents the source file, which can have another project item such as a .resx file.
Sub FileNamesExample() Dim proj As Project Dim projitems As ProjectItems ' Reference the current solution and its projects and project items. proj = DTE.ActiveSolutionProjects(0) projitems = proj.ProjectItems ' List the file name associated with the first project item. MsgBox(projitems.Item(1).FileNames(1)) End Sub
- 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.