QuicConnectionOptions.DefaultCloseErrorCode 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定連線被丟棄時使用的 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) 。