_Solution.ProjectItemsTemplatePath(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定项目类型的项目项模板的位置。
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
参数
返回
给定项目类型模板的路径。
- 属性
示例
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[] 只不过它适用于模板而不是项目。