IVisualizerObjectProvider.TransferObject(Object) 메서드

정의

주의

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

기본 serialization을 사용하여 나가는 개체를 직렬화한 다음 TransferData를 호출합니다. 반환 시 들어오는 데이터를 역직렬화하고 역직렬화된 개체를 반환합니다.

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

매개 변수

outgoingObject
Object

디버그 쪽으로 다시 전송할 개체입니다.

반환

의 반환 값을 역직렬화한 결과입니다 TransferData(Stream).

특성

예제

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

설명

데이터 개체를 디버그기로 다시 전송합니다. 시각화 중인 개체를 바꾼 후 이 메서드를 호출합니다. 이 메서드를 호출하여 일부 정보를 전송하거나 VisualizerObjectSource에서 명령을 호출합니다. 이 메서드는 TransferData(Stream) serialization 및 deserialization 도우미 메서드에 대한 호출로 래핑합니다.

적용 대상