_Solution.TemplatePath[String] Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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
Valor da propriedade
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.