IVisualizerObjectProvider.GetObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.GetObject instead.
Gets the data using GetData and then deserializes assuming that default serialization has been done
public:
System::Object ^ GetObject();
public:
Platform::Object ^ GetObject();
winrt::Windows::Foundation::IInspectable GetObject();
public object GetObject ();
[System.Obsolete("This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.GetObject instead.")]
public object GetObject ();
abstract member GetObject : unit -> obj
[<System.Obsolete("This method uses binary serialization which is no longer supported, please use IVisualizerObjectProvider3.GetObject instead.")>]
abstract member GetObject : unit -> obj
Public Function GetObject () As Object
Returns
The data object being visualized. This is actually a debugger-side copy of the object you are visualizing in the debuggee. If you modify the contents of this object, the changes will not be reflected back in the debuggee unless you use the ReplaceData(Stream)/ ReplaceObject(Object) or TransferData(Stream)/TransferObject(Object).
- Attributes
Examples
public class DebuggerSide : DialogDebuggerVisualizer
{
override protected void Show(IDialogVisualizerService windowService, IVisualizerObjectProvider objectProvider)
{
MessageBox.Show(objectProvider.GetObject().ToString());
}
// Other DebuggerSide methods ommitted for clarity.
}
Remarks
Calls GetData() and deserializes the data into an object.