IAsyncVisualizerObjectProvider.ReplaceDataAsync 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.
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
- token
- CancellationToken
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.