Aracılığıyla paylaş


_Solution.TemplatePath Özellik

Belirtilen tür proje şablonları içeren dizinin adını ve tam yolunu alır.

Ad alanı:  EnvDTE
Derleme:  EnvDTE (EnvDTE.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property TemplatePath ( _
    ProjectType As String _
) As String
string this[
    string ProjectType
] { get; }
property String^ TemplatePath[[InAttribute] String^ ProjectType] {
    String^ get ([InAttribute] String^ ProjectType);
}
abstract TemplatePath : string
JScript dizini oluşturulan özellikleri desteklemez.

Parametreler

Özellik Değeri

Tür: System.String
Tam yolu ve adı belirtilen tür proje şablonları içeren dizin.

Notlar

Örneğin, TemplatePath(vsVBProjectKind) yolunu döndürür <Visual Studio root installation directory>\VBProjects.

TemplatePathbenzer şekilde, ProjectItemsTemplatePath projeleri şablonlar yerine ise olmasıdır.

Ö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

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

_Solution Arabirim

EnvDTE Ad Alanı