PipeWriter.Create(Stream, StreamPipeWriterOptions) 方法

定义

创建包装指定的 StreamPipeWriter

public static System.IO.Pipelines.PipeWriter Create (System.IO.Stream stream, System.IO.Pipelines.StreamPipeWriterOptions writerOptions = default);
public static System.IO.Pipelines.PipeWriter Create (System.IO.Stream stream, System.IO.Pipelines.StreamPipeWriterOptions? writerOptions = default);
static member Create : System.IO.Stream * System.IO.Pipelines.StreamPipeWriterOptions -> System.IO.Pipelines.PipeWriter
Public Shared Function Create (stream As Stream, Optional writerOptions As StreamPipeWriterOptions = Nothing) As PipeWriter

参数

stream
Stream

管道编写器要包装的流。

writerOptions
StreamPipeWriterOptions

用于配置管道编写器的选项。

返回

包装 StreamPipeWriter

适用于