QuicStream.WritesClosed 属性

定义

获取在 Task 写入端关闭时将完成的 。

public:
 property System::Threading::Tasks::Task ^ WritesClosed { System::Threading::Tasks::Task ^ get(); };
public System.Threading.Tasks.Task WritesClosed { get; }
member this.WritesClosed : System.Threading.Tasks.Task
Public ReadOnly Property WritesClosed As Task

属性值

注解

可以通过调用 CompleteWrites()WriteAsync(ReadOnlyMemory<Byte>, Boolean, CancellationToken)completeWrites: true 并使用 并从对等方获取确认来关闭写入端,或者当为 Write调用 时Abort(QuicAbortDirection, Int64),或者当对等方为 Read调用Abort(QuicAbortDirection, Int64)时,可以关闭写入端。

适用于