IVisualizerTarget.ReplaceTargetObjectAsync 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.
Sends a message to the visualizer object source in the target process requeseting to replace the target object.
public System.Threading.Tasks.Task ReplaceTargetObjectAsync(System.Buffers.ReadOnlySequence<byte> data, System.Threading.CancellationToken cancellationToken);
abstract member ReplaceTargetObjectAsync : System.Buffers.ReadOnlySequence<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ReplaceTargetObjectAsync (data As ReadOnlySequence(Of Byte), cancellationToken As CancellationToken) As Task
Parameters
- data
- ReadOnlySequence<Byte>
The content of the message. The format of data
is defined by the chosen
visualizer object source.
- cancellationToken
- CancellationToken
Cancellation token for the async call.
Returns
A task tracking the completion of the async call.
Exceptions
When the visualizer target is unavailable or becomes unavailable before the call can be completed.