Expression2.Parent Özellik
Hemen üst nesnesi alır bir Expression2 nesne.
Ad alanı: EnvDTE100
Derleme: EnvDTE100 (EnvDTE100.dll içinde)
Sözdizimi
'Bildirim
ReadOnly Property Parent As Debugger
Debugger Parent { get; }
property Debugger^ Parent {
Debugger^ get ();
}
abstract Parent : Debugger
function get Parent () : Debugger
Özellik Değeri
Tür: EnvDTE.Debugger
Debugger nesnesi
Notlar
Parent Özelliği döndürür hemen üst Expression2 nesne.İçeren koleksiyonu almak istiyorsanız, bu, Collection özelliği.
Örnekler
Aşağıdaki örnek, nasıl kullanılacağını gösterir Parent özelliği.
Bu özellik test etmek için:
Hedef uygulamanız bir kesme noktası ayarlayın.
Hedef uygulama hata ayıklama modunda çalıştırın.
Uygulama kesme noktasında durur eklentiyi çalıştırın.
public static void Parent(DTE dte)
{
// Setup debug Output window.
Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
w.Visible = true;
OutputWindow ow = (OutputWindow)w.Object;
OutputWindowPane owp = ow.OutputWindowPanes.Add("Parent Property Test");
owp.Activate();
EnvDTE100.Expression2 exp = dte.Debugger.GetExpression("tempC", true, 1);
owp.OutputString("The name of the current program: " + exp.Parent.CurrentProgram.Name);
}
Shared Sub Parent(ByRef dte As EnvDTE.DTE)
Dim exp As EnvDTE100.Expression2 = dte.Debugger.GetExpression("tempC", True, 1)
MessageBox.Show("The name of the current program: " + _
exp.Parent.CurrentProgram.Name, _
"Expression Test - Parent Property")
End Sub
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen güvenilen kod kitaplıklarını kullanma.
Ayrıca bkz.
Başvuru
Diğer Kaynaklar
Nasıl yapılır: derlemek ve Otomasyon nesne modeli kod örneklerini çalıştırmak