IVisualizerTarget.RequestDataAsync 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 and returns the corresponding response.
public System.Threading.Tasks.Task<System.Buffers.ReadOnlySequence<byte>?> RequestDataAsync (System.Buffers.ReadOnlySequence<byte>? data, System.Threading.CancellationToken cancellationToken);
abstract member RequestDataAsync : Nullable<System.Buffers.ReadOnlySequence<byte>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Nullable<System.Buffers.ReadOnlySequence<byte>>>
Public Function RequestDataAsync (data As Nullable(Of ReadOnlySequence(Of Byte)), cancellationToken As CancellationToken) As Task(Of Nullable(Of ReadOnlySequence(Of Byte)))
Parameters
- data
- Nullable<ReadOnlySequence<Byte>>
The optional 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
The optional response to the message. The format of data
is defined by the chosen
visualizer object source.
Exceptions
When the visualizer target is unavailable or becomes unavailable before the call can be completed.