Share via


HttpResponseStreamWriter.WriteAsync Method

Definition

Overloads

WriteAsync(Char)
WriteAsync(String)
WriteAsync(ReadOnlyMemory<Char>, CancellationToken)
WriteAsync(Char[], Int32, Int32)

WriteAsync(Char)

Source:
HttpResponseStreamWriter.cs
Source:
HttpResponseStreamWriter.cs
Source:
HttpResponseStreamWriter.cs

Writes a character to the text stream asynchronously.

public:
 override System::Threading::Tasks::Task ^ WriteAsync(char value);
public override System.Threading.Tasks.Task WriteAsync (char value);
override this.WriteAsync : char -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (value As Char) As Task

Parameters

value
Char

Returns

Applies to

WriteAsync(String)

Source:
HttpResponseStreamWriter.cs
Source:
HttpResponseStreamWriter.cs
Source:
HttpResponseStreamWriter.cs

Writes a string to the text stream asynchronously.

public:
 override System::Threading::Tasks::Task ^ WriteAsync(System::String ^ value);
public override System.Threading.Tasks.Task WriteAsync (string value);
public override System.Threading.Tasks.Task WriteAsync (string? value);
override this.WriteAsync : string -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (value As String) As Task

Parameters

value
String

Returns

Applies to

WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

Source:
HttpResponseStreamWriter.cs

Asynchronously writes a character memory region to the text stream.

public override System.Threading.Tasks.Task WriteAsync (ReadOnlyMemory<char> value, System.Threading.CancellationToken cancellationToken = default);
override this.WriteAsync : ReadOnlyMemory<char> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (value As ReadOnlyMemory(Of Char), Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

Returns

Applies to

WriteAsync(Char[], Int32, Int32)

Source:
HttpResponseStreamWriter.cs
Source:
HttpResponseStreamWriter.cs
Source:
HttpResponseStreamWriter.cs

Writes a subarray of characters to the text stream asynchronously.

public:
 override System::Threading::Tasks::Task ^ WriteAsync(cli::array <char> ^ values, int index, int count);
public override System.Threading.Tasks.Task WriteAsync (char[] values, int index, int count);
override this.WriteAsync : char[] * int * int -> System.Threading.Tasks.Task
Public Overrides Function WriteAsync (values As Char(), index As Integer, count As Integer) As Task

Parameters

values
Char[]
index
Int32
count
Int32

Returns

Applies to