WebClient.AllowReadStreamBuffering Свойство

Определение

Внимание!

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

Возвращает или задает значение, указывающее, следует ли буферивировать данные из ресурса Интернета для экземпляра WebClient.

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 для включения буферизации данных, полученных из ресурса Интернета; false отключить буферизацию. Значение по умолчанию — true.

Атрибуты

Комментарии

Осторожность

WebRequest, HttpWebRequest, ServicePointи WebClient устарели, и их не следует использовать для новой разработки. Вместо этого используйте HttpClient.

Когда свойство AllowReadStreamBufferingtrue, данные буферизуются в памяти, чтобы оно было готово к чтению приложением.

Применяется к