_Solution.ProjectItemsTemplatePath(String) 方法

定义

返回指定项目类型的项目项模板的位置。

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

参数

ProjectKind
String

必需。 Constants.vsProjectKind* 表示项目类型的项目模板。

返回

String

给定项目类型模板的路径。

属性

示例

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  

注解

ProjectItemsTemplatePath 类似于, TemplatePath[] 只不过它适用于模板而不是项目。

适用于