_Solution.TemplatePath[String] Eigenschaft

Definition

Ruft den vollständigen Pfad und den Namen des Verzeichnisses ab, das Vorlagen für den angegebenen Projekttyp enthält.

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

Parameter

ProjectType
String

Erforderlich. Eine GUID, die den Projekttyp identifiziert, von PrjKind .

Eigenschaftswert

String

Der vollständige Pfad und Name des Verzeichnisses mit den Vorlagen für den angegebenen Projekttyp zurück.

Attribute

Beispiele

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  

Hinweise

TemplatePath(vsVBProjectKind)Gibt z. b. den Pfad zurück <Visual Studio root installation directory>\VBProjects .

TemplatePath ähnelt, ProjectItemsTemplatePath mit dem Unterschied, dass es für-Projekte und nicht für Vorlagen gilt.

Gilt für