_Solution.TemplatePath[String] Propriedade

Definição

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

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

Parâmetros

ProjectType
String

Obrigatórios. Um GUID que identifica o tipo de projeto, de PrjKind .

Valor da propriedade

String

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

Atributos

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  

Comentários

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

TemplatePath é semelhante a ProjectItemsTemplatePath , exceto pelo fato de que se trata de projetos em vez de modelos.

Aplica-se a