Classe DialogDebuggerVisualizer
Hierarquia de herança
Object
Microsoft.VisualStudio.DebuggerVisualizers.DialogDebuggerVisualizer
Namespace: Microsoft.VisualStudio.DebuggerVisualizers
Assembly: Microsoft.VisualStudio.DebuggerVisualizers (em Microsoft.VisualStudio.DebuggerVisualizers.dll)
Sintaxe
'Declaração
Public MustInherit Class DialogDebuggerVisualizer
public abstract class DialogDebuggerVisualizer
public ref class DialogDebuggerVisualizer abstract
[<AbstractClass>]
type DialogDebuggerVisualizer = class end
public abstract class DialogDebuggerVisualizer
O tipo DialogDebuggerVisualizer expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
![]() |
DialogDebuggerVisualizer |
Superior
Métodos
Nome | Descrição | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.) |
![]() |
GetHashCode | Serves as the default hash function. (Herdado de Object.) |
![]() |
GetType | Gets the Type of the current instance. (Herdado de Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Herdado de Object.) |
![]() |
Show | |
![]() |
ToString | Returns a string that represents the current object. (Herdado de Object.) |
Superior
Comentários
Esta é a classe do lado do depurador, o que recebe os dados da fonte de objeto através do provedor de objeto. Essa classe é responsável por mostrar e gerenciar a interface do usuário e a edição opcional de dados. Normalmente, você só precisará substituir o Show() método para usar essa classe.
Exemplos
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);
}
}
Acesso thread-safe
Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.