_Solution.ProjectItemsTemplatePath 方法

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

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
Function ProjectItemsTemplatePath ( _
    ProjectKind As String _
) As String
string ProjectItemsTemplatePath(
    string ProjectKind
)
String^ ProjectItemsTemplatePath(
    String^ ProjectKind
)
abstract ProjectItemsTemplatePath : 
        ProjectKind:string -> string
function ProjectItemsTemplatePath(
    ProjectKind : String
) : String

参数

  • ProjectKind
    类型:String

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

返回值

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

备注

ProjectItemsTemplatePathTemplatePath 类似,不同之处是前者用于模板而不用于项目。

示例

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

.NET Framework 安全性

请参阅

参考

_Solution 接口

EnvDTE 命名空间