StreamPipeWriterOptions 类
定义
表示一组用于控制 PipeWriter 创建的选项。Represents a set of options for controlling the creation of the PipeWriter.
public ref class StreamPipeWriterOptions
public class StreamPipeWriterOptions
type StreamPipeWriterOptions = class
Public Class StreamPipeWriterOptions
- 继承
-
StreamPipeWriterOptions
构造函数
| StreamPipeWriterOptions(MemoryPool<Byte>, Int32, Boolean) |
初始化 StreamPipeWriterOptions 实例,可以选择指定内存池、最小缓冲区大小以及基础流是否应在 PipeWriter 完成之后保持打开状态。Initializes a StreamPipeWriterOptions instance, optionally specifying a memory pool, a minimum buffer size, and whether the underlying stream should be left open after the PipeWriter completes. |
属性
| LeaveOpen |
获取一个值,该值指示基础流是否应在 PipeWriter 完成之后保持打开状态。Gets the value that indicates if the underlying stream should be left open after the PipeWriter completes. |
| MinimumBufferSize |
获取要在租用 Pool 中的内存时使用的最小缓冲区大小。Gets the minimum buffer size to use when renting memory from the Pool. |
| Pool |
获取要在分配内存时使用的 MemoryPool<T>。Gets the MemoryPool<T> to use when allocating memory. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |