_Solution.TemplatePath[String] Özellik
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Belirtilen proje türü için şablonları içeren dizinin tam yolunu ve adını alır.
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
Parametreler
Özellik Değeri
Belirtilen proje türü için şablonlar içeren dizinin tam yolu ve adı.
- Öznitelikler
Örnekler
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
Açıklamalar
Örneğin, TemplatePath(vsVBProjectKind) yolunu döndürür <Visual Studio root installation directory>\VBProjects .
TemplatePath , ProjectItemsTemplatePath Şablonlar yerine projeler için olması dışında, öğesine benzerdir.