Share via


QuicConnectionOptions.DefaultCloseErrorCode 屬性

定義

取得或設定處置連接時所使用的 CloseAsync(Int64, CancellationToken) 錯誤碼。

public:
 property long DefaultCloseErrorCode { long get(); void set(long value); };
public long DefaultCloseErrorCode { get; set; }
member this.DefaultCloseErrorCode : int64 with get, set
Public Property DefaultCloseErrorCode As Long

屬性值

備註

這個屬性是必要屬性,而且不會設定它會導致建立連線時發生驗證錯誤。

若要使用不同的關閉錯誤碼,請在處置之前明確呼叫 CloseAsync(Int64, CancellationToken)

適用於