Aracılığıyla paylaş


VCCodeMap.Location Özellik

Nesne bildiriminin yerini alır.

Ad alanı:  Microsoft.VisualStudio.VCCodeModel
Derleme:  Microsoft.VisualStudio.VCCodeModel (Microsoft.VisualStudio.VCCodeModel.dll içinde)

Sözdizimi

'Bildirim
ReadOnly Property Location ( _
    Where As vsCMWhere _
) As String
string this[
    vsCMWhere Where
] { get; }
property String^ Location[[InAttribute] vsCMWhere Where] {
    String^ get ([InAttribute] vsCMWhere Where);
}
abstract Location : 
        Where:vsCMWhere -> string with get
JScript dizini oluşturulan özellikleri desteklemez.

Parametreler

Özellik Değeri

Tür: String
Nesne bildirimin yeri.

Notlar

Bkz: Nasıl yapılır: Visual C++ Kod Modeli Genişletilebilirliği için Örnek Kod Derleme derlemek ve bu örnek çalıştırma hakkında bilgi için.

Örnekler

Bu örnek, her üst düzey kod öðe bildirimini içeren dosyayı görüntüler.

Sub DisplayLocation()
    Dim vcCM As VCCodeModel
    Dim vcCodeElement As VCCodeElement
    vcCM = DTE.Solution.Item(1).CodeModel
    For Each vcCodeElement In vcCM.CodeElements
        MsgBox(vcCodeElement.Name + " is declared in " + vcCodeElement.Location)
    Next
End Sub

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

VCCodeMap Arabirim

Microsoft.VisualStudio.VCCodeModel Ad Alanı