_Solution.TemplatePath[String] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the full path and name of the directory that contains templates for the specified type of project.
public:
property System::String ^ TemplatePath[System::String ^] { System::String ^ get(System::String ^ ProjectType); };
[System.Runtime.InteropServices.DispId(26)]
public string TemplatePath[string ProjectType] { [System.Runtime.InteropServices.DispId(26)] get; }
[<System.Runtime.InteropServices.DispId(26)>]
[<get: System.Runtime.InteropServices.DispId(26)>]
member this.TemplatePath(string) : string
Public ReadOnly Property TemplatePath(ProjectType As String) As String
Parameters
Property Value
The full path and name of the directory that contains templates for the specified type of project.
- Attributes
Examples
Sub TemplatePathExample()
' 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 type.
MsgBox(soln.TemplatePath(DTE.Solution.Item(1).Kind))
End Sub
Remarks
For example, TemplatePath(vsVBProjectKind)
returns the path <Visual Studio root installation directory>\VBProjects
.
TemplatePath
is similar to ProjectItemsTemplatePath except that it is for projects rather than templates.