Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

_Solution.ProjectItemsTemplatePath Method

Returns the location of project item templates for the specified project type.

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

string ProjectItemsTemplatePath(
	string ProjectKind
)

Parameters

ProjectKind
Type: System.String

Required. The Constants.vsProjectKind* project template representing the project type.

Return Value

Type: System.String
The path to the templates of the given project type.

ProjectItemsTemplatePath is similar to TemplatePath except that it is for templates rather than projects.

Sub ProjectItemsTemplatePathExample()
   ' Open a Visual Basic solution before running this example.
   Dim soln As Solution

   ' Create a reference to the solution.
   soln = DTE.Solution

   ' List the path to the templates for the project item type.
   MsgBox(soln.ProjectItemsTemplatePath(DTE.Solution.Item(1).kind))
End Sub

Show:
© 2015 Microsoft