Compartir a través de


IVisualizerObjectProvider.TransferObject(Object) Método

Definición

Precaución

This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.TransferObject instead.

Serializa el objeto saliente mediante la serialización predeterminada y, a continuación, llama a TransferData. Tras la devolución, deserializa los datos entrantes y devuelve el objeto deserializado.

public:
 System::Object ^ TransferObject(System::Object ^ outgoingObject);
public:
 Platform::Object ^ TransferObject(Platform::Object ^ outgoingObject);
winrt::Windows::Foundation::IInspectable TransferObject(winrt::Windows::Foundation::IInspectable const & outgoingObject);
public object TransferObject (object outgoingObject);
[System.Obsolete("This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.TransferObject instead.")]
public object TransferObject (object outgoingObject);
abstract member TransferObject : obj -> obj
[<System.Obsolete("This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.TransferObject instead.")>]
abstract member TransferObject : obj -> obj
Public Function TransferObject (outgoingObject As Object) As Object

Parámetros

outgoingObject
Object

Objeto que será devuelto al lado depurado.

Devoluciones

El resultado de deserializar el valor devuelto de TransferData(Stream).

Atributos

Ejemplos

public class DebuggerSide : DialogDebuggerVisualizer
{
    override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
    {
        // Get a string from the debuggee side and display it in a message box.  
        String myString = objectProvider.GetObject().ToString();
        MessageBox.Show(myString);

        // Modify the string and send it back to the debuggee side.  
        String myNewString = myString.ToUpper();
        // Make sure the object is replacable before you try to replace it.  
        // Otherwise, you will get an exception.  
        objectProvider.TransferObject(myNewString);
    }
    // Other DebuggerSide methods ommitted for clarity.  
}

Comentarios

Devuelve un objeto de datos al depurado. Llame a este método después de reemplazar el objeto que se está visualizando. Llame a este método para transferir información o llamar a un comando en visualizerObjectSource. Este método simplemente se ajusta con llamadas a métodos auxiliares TransferData(Stream) de serialización y deserialización.

Se aplica a