VCCodeEvent.Location[vsCMWhere] Ö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.
Nesne bildiriminin konumunu alır.
public:
property System::String ^ Location[Microsoft::VisualStudio::VCCodeModel::vsCMWhere] { System::String ^ get(Microsoft::VisualStudio::VCCodeModel::vsCMWhere Where); };
[System.Runtime.InteropServices.DispId(549)]
public string Location[Microsoft.VisualStudio.VCCodeModel.vsCMWhere Where = Microsoft.VisualStudio.VCCodeModel.vsCMWhere.vsCMWhereDefault] { [System.Runtime.InteropServices.DispId(549)] get; }
[<System.Runtime.InteropServices.DispId(549)>]
[<get: System.Runtime.InteropServices.DispId(549)>]
member this.Location(Microsoft.VisualStudio.VCCodeModel.vsCMWhere) : string
Public ReadOnly Property Location(Optional Where As vsCMWhere = Microsoft.VisualStudio.VCCodeModel.vsCMWhere.vsCMWhereDefault) As String
Parametreler
- Where
- vsCMWhere
İsteğe bağlı. vsCMWhereBildirimin konumunun mi yoksa tanımın mi döndürüleceğini belirten bir değer.
Özellik Değeri
Nesne bildiriminin konumu.
- Öznitelikler
Örnekler
Bu örnek, her üst düzey kod öğesi için bildirimi içeren dosyayı görüntüler.
[Visual Basic]
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
Açıklamalar
Bu örneği derlemek ve çalıştırmak hakkında bilgi için bkz. nasıl yapılır: Visual C++ Code Model genişletilebilirliği Için örnek kod derleme .