Partager via


_Solution.ProjectItemsTemplatePath, méthode

Retourne l'emplacement des modèles d'éléments de projet pour le type de projet spécifié.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

'Déclaration
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

Paramètres

  • ProjectKind
    Type : String

    Obligatoire. Modèle de projet Constants.vsProjectKind* représentant le type du projet.

Valeur de retour

Type : String
Chemin d'accès aux modèles du type de projet donné.

Notes

ProjectItemsTemplatePath est semblable à TemplatePath, excepté qu'elle concerne les modèles et non pas les projets.

Exemples

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

Sécurité .NET Framework

Voir aussi

Référence

_Solution Interface

EnvDTE, espace de noms