Compartilhar via


_Solution.ProjectItemsTemplatePath(String) Method

Definition

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

public:
 System::String ^ ProjectItemsTemplatePath(System::String ^ ProjectKind);
public:
 Platform::String ^ ProjectItemsTemplatePath(Platform::String ^ ProjectKind);
std::wstring ProjectItemsTemplatePath(std::wstring const & ProjectKind);
[System.Runtime.InteropServices.DispId(43)]
public string ProjectItemsTemplatePath (string ProjectKind);
[<System.Runtime.InteropServices.DispId(43)>]
abstract member ProjectItemsTemplatePath : string -> string
Public Function ProjectItemsTemplatePath (ProjectKind As String) As String

Parameters

ProjectKind
String

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

Returns

The path to the templates of the given project type.

Attributes

Examples

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  

Remarks

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

Applies to