Sdílet prostřednictvím


DialogDebuggerVisualizer.Show-Methode

Aktualisiert: November 2007

Namespace:  Microsoft.VisualStudio.DebuggerVisualizers
Assembly:  Microsoft.VisualStudio.DebuggerVisualizers (in Microsoft.VisualStudio.DebuggerVisualizers.dll)

Syntax

'Declaration
Protected Friend MustOverride Sub Show ( _
    windowService As IDialogVisualizerService, _
    objectProvider As IVisualizerObjectProvider _
)
'Usage
Dim windowService As IDialogVisualizerService
Dim objectProvider As IVisualizerObjectProvider

Me.Show(windowService, objectProvider)
protected internal abstract void Show(
    IDialogVisualizerService windowService,
    IVisualizerObjectProvider objectProvider
)
protected public:
virtual void Show(
    IDialogVisualizerService^ windowService, 
    IVisualizerObjectProvider^ objectProvider
) abstract
protected internal abstract function Show(
    windowService : IDialogVisualizerService, 
    objectProvider : IVisualizerObjectProvider
)

Parameter

Hinweise

Dies ist die Methode, die Sie überschreiben, um die Benutzeroberfläche der Schnellansicht anzuzeigen.

Beispiele

public class Visualizer1 : DialogDebuggerVisualizer
{
   protected override void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
   {
      // TODO: Get the object to display a visualizer for.
      //       Cast the result of objectProvider.GetObject() 
      //       to the type of the object being visualized.
      object data = (object)objectProvider.GetObject();

      // TODO: Display your view of the object.
      //       Replace displayForm with your own custom Form or Control.
      Form displayForm = new Form();
      displayForm.Text = data.ToString();
      windowService.ShowDialog(displayForm);
   }

}

Berechtigungen

Siehe auch

Referenz

DialogDebuggerVisualizer-Klasse

DialogDebuggerVisualizer-Member

Microsoft.VisualStudio.DebuggerVisualizers-Namespace