IVisualizerObjectProvider.TransferObject(Object) Metodo

Definizione

Attenzione

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

Serializza l'oggetto in uscita usando la serializzazione predefinita e quindi chiama TransferData. Al momento della restituzione deserializza i dati in ingresso e restituisce l'oggetto deserializzato

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

Parametri

outgoingObject
Object

Oggetto da ritrasferire al lato oggetto del debug.

Restituisce

Risultato della deserializzazione del valore restituito dal metodo TransferData(Stream).

Attributi

Esempio

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.  
}

Commenti

Trasferisce di nuovo un oggetto dati all'oggetto di debug. Chiamare questo metodo dopo aver sostituito l'oggetto visualizzato. Chiamare questo metodo per trasferire alcune informazioni o chiamare un comando in VisualizerObjectSource. Questo metodo esegue TransferData(Stream) il wrapping con chiamate ai metodi helper di serializzazione e deserializzazione.

Si applica a