Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the location of project item templates for the specified project type.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
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
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.
Remarks
ProjectItemsTemplatePath is similar to TemplatePath except that it is for templates rather than projects.
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.