PipeWriter.CompleteAsync(Exception) Method
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.
Marks the current pipe writer instance as being complete, meaning no more data will be written to it.
public virtual System.Threading.Tasks.ValueTask CompleteAsync (Exception? exception = default);
abstract member CompleteAsync : Exception -> System.Threading.Tasks.ValueTask
override this.CompleteAsync : Exception -> System.Threading.Tasks.ValueTask
Public Overridable Function CompleteAsync (Optional exception As Exception = Nothing) As ValueTask
- exception
- Exception
An optional exception that indicates the failure that caused the pipeline to complete.
A value task that represents the asynchronous complete operation.
This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by Complete(Exception).
Prodotto | Versioni |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: