Share via


IAsyncVisualizerObjectProvider.ReplaceDataAsync Method

Definition

Creates a replacement copy of the object based on the serialized data given asynchronously.

public System.Threading.Tasks.Task ReplaceDataAsync (System.IO.Stream newObjectData, System.Threading.CancellationToken token);
abstract member ReplaceDataAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReplaceDataAsync (newObjectData As Stream, token As CancellationToken) As Task

Parameters

newObjectData
Stream

Returns

Remarks

Replaces the contents of the object being visualized with the contents of the data stream you specify. Sends the contents of the stream parameter to the ObjectSource class, for that class to do anything it needs with it.

Applies to