Udostępnij za pośrednictwem


Klasa VisualizerDevelopmentHost

Hierarchia dziedziczenia

Object
  Microsoft.VisualStudio.DebuggerVisualizers.VisualizerDevelopmentHost

Przestrzeń nazw:  Microsoft.VisualStudio.DebuggerVisualizers
Zestaw:  Microsoft.VisualStudio.DebuggerVisualizers (w Microsoft.VisualStudio.DebuggerVisualizers.dll)

Składnia

'Deklaracja
Public Class VisualizerDevelopmentHost
public class VisualizerDevelopmentHost
public ref class VisualizerDevelopmentHost
type VisualizerDevelopmentHost =  class end
public class VisualizerDevelopmentHost

Typ VisualizerDevelopmentHost uwidacznia następujące elementy członkowskie.

Konstruktorzy

  Nazwa Opis
Metoda publiczna VisualizerDevelopmentHost(Object, Type)
Metoda publiczna VisualizerDevelopmentHost(Object, Type, Type)
Metoda publiczna VisualizerDevelopmentHost(Object, Type, Type, Boolean)

Początek

Właściwości

  Nazwa Opis
Właściwość publiczna DebuggeeObject

Początek

Metody

  Nazwa Opis
Metoda publiczna Equals Determines whether the specified object is equal to the current object. (Odziedziczone z Object).
Metoda chroniona Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Odziedziczone z Object).
Metoda publiczna GetHashCode Serves as the default hash function. (Odziedziczone z Object).
Metoda publiczna GetType Gets the Type of the current instance. (Odziedziczone z Object).
Metoda chroniona MemberwiseClone Creates a shallow copy of the current Object. (Odziedziczone z Object).
Metoda publiczna ShowVisualizer()
Metoda publiczna ShowVisualizer(Control)
Metoda publiczna ShowVisualizer(IWin32Window)
Metoda publiczna ToString Returns a string that represents the current object. (Odziedziczone z Object).

Początek

Uwagi

Ta klasa umożliwia tworzenie przewodów do testowania i debugowania podglądacza debugera.Wizualizatorymałe niestandardowe aplikacje są nazywane z debuggera Visual Studio, aby wyświetlić obiekty danych w sposób zgodny z typem danych.Klasa VisualizerDevelopmentHost umożliwia uruchamianie podglądacza do testowania i debugowania celów bez instalowania podglądacza do programu Visual Studio.Za pomocą przewodów umożliwia debugowanie podglądacza znacznie łatwiejsze.

Przykłady

Poniższy przykładowy kod tworzy hosta rozwoju podglądacza i wywołuje hosta, aby pokazać podglądacza.MyDataObjectjest obiektem danych, które chcesz wyświetlić w podglądacza.MyVisualizerjest podglądacza, sam.

public static void TestShowVisualizer(object MyDataObject)
{
   VisualizerDevelopmentHost visualizerHost = new VisualizerDevelopmentHost (MyDataObject, typeof(MyVisualizer);
   visualizerHost.ShowVisualizer();
}

Kod wywołujący wygląda następująco:

String myString = "Hello, World!";  // Create an object to visualize
Visualizer1.TestShowVisualizer(myString);  // Call the host to visualize it

Bezpieczeństwo wątku

Wszystkie publiczne static (Shared w języku Visual Basic) elementy członkowskie tego typu są bezpieczne dla wątków. Wystąpienia elementów członkowskich nie dają gwarancji bezpieczeństwa wątków.

Zobacz też

Informacje

Przestrzeń nazw Microsoft.VisualStudio.DebuggerVisualizers