Dibaca dalam bahasa Inggeris Edit

Kongsi melalui


WebClient.AllowReadStreamBuffering Property

Definition

Caution

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

Gets or sets a value that indicates whether to buffer the data read from the Internet resource for a WebClient instance.

C#
[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; }

Property Value

true to enable buffering of the data received from the Internet resource; false to disable buffering. The default is true.

Attributes

Remarks

Awas

WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete, and you shouldn't use them for new development. Use HttpClient instead.

When the AllowReadStreamBuffering property is true, the data is buffered in memory so it is ready to be read by the app.

Applies to

Produk Versi (Lapuk)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10)
.NET Framework (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)