共用方式為


HttpClient.MaxResponseContentBufferSize Property

Gets or sets the maximum number of bytes to buffer when reading the response content.

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

Syntax

'Declaration
Public Property MaxResponseContentBufferSize As Long 
    Get 
    Set
'Usage
Dim instance As HttpClient 
Dim value As Long 

value = instance.MaxResponseContentBufferSize

instance.MaxResponseContentBufferSize = value
public long MaxResponseContentBufferSize { get; set; }
public:
property long long MaxResponseContentBufferSize {
    long long get ();
    void set (long long value);
}
member MaxResponseContentBufferSize : int64 with get, set
function get MaxResponseContentBufferSize () : long 
function set MaxResponseContentBufferSize (value : long)

Property Value

Type: System.Int64

Remarks

For a complete example of using the HttpClient class, see Calling a Web API From a .NET Client

See Also

Reference

HttpClient Class

System.Net.Http Namespace