HttpWebRequest.DefaultMaximumErrorResponseLength 屬性

定義

取得或設定 HTTP 錯誤回應的預設最大長度。

public:
 static property int DefaultMaximumErrorResponseLength { int get(); void set(int value); };
public static int DefaultMaximumErrorResponseLength { get; set; }
member this.DefaultMaximumErrorResponseLength : int with get, set
Public Shared Property DefaultMaximumErrorResponseLength As Integer

屬性值

Int32

HTTP 錯誤回應的預設最大長度。

例外狀況

值小於 0 且不等於 -1。

適用於