Propriedade _Solution.TemplatePath

Obtém o caminho completo e o nome do diretório que contém modelos para o tipo especificado de projeto.

Namespace:  EnvDTE
Assembly:  EnvDTE (em EnvDTE.dll)

Sintaxe

'Declaração
ReadOnly Property TemplatePath ( _
    ProjectType As String _
) As String
string this[
    string ProjectType
] { get; }
property String^ TemplatePath[[InAttribute] String^ ProjectType] {
    String^ get ([InAttribute] String^ ProjectType);
}
abstract TemplatePath : string
JScript não oferece suporte a propriedades indexadas.

Parâmetros

  • ProjectType
    Tipo: System.String
    Obrigatório.Um GUID que identifica o tipo de projeto, de PrjKind.

Valor de propriedade

Tipo: System.String
O caminho completo e o nome do diretório que contém modelos para o tipo especificado de projeto.

Comentários

Por exemplo, TemplatePath(vsVBProjectKind) retorna o caminho <Visual Studio root installation directory>\VBProjects.

TemplatePathé semelhante a ProjectItemsTemplatePath , exceto pelo fato de que ele seja para projetos em vez de modelos.

Exemplos

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

Segurança do .NET Framework

Consulte também

Referência

_Solution Interface

Namespace EnvDTE