WebClient.AllowReadStreamBuffering 属性

定义

注意

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

获取或设置一个值,该值指示是否缓冲从 WebClient 实例的 Internet 资源读取的数据。

public:
 property bool AllowReadStreamBuffering { bool get(); void set(bool value); };
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public bool AllowReadStreamBuffering { get; set; }
[<System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)>]
member this.AllowReadStreamBuffering : bool with get, set
Public Property AllowReadStreamBuffering As Boolean

属性值

true 启用从 Internet 资源接收的数据的缓冲;false 禁用缓冲。 默认值为 true

属性

注解

谨慎

WebRequestHttpWebRequestServicePointWebClient 已过时,不应将其用于新开发。 请改用 HttpClient

AllowReadStreamBuffering 属性 true时,数据会缓冲在内存中,以便它可供应用读取。

适用于