.NET Framework Class Library for Silverlight
HttpWebRequest..::.AllowReadStreamBuffering Property

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

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

Visual Basic (Declaration)
Public Overridable Property AllowReadStreamBuffering As Boolean
    Get
    Set
Visual Basic (Usage)
Dim instance As HttpWebRequest
Dim value As Boolean

value = instance.AllowReadStreamBuffering

instance.AllowReadStreamBuffering = value
C#
public virtual bool AllowReadStreamBuffering { get; set; }

Property Value

Type: System..::.Boolean
true to enable buffering of the data received from the Internet resource; false to disable buffering. The default is true.
Exceptions

ExceptionCondition
NotImplementedException

This property is not implemented.

Remarks

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

The AllowReadStreamBuffering property affects when the callback from BeginGetResponse method is called. When the AllowReadStreamBuffering property is true, the callback is raised once the entire stream has been downloaded into memory. When the AllowReadStreamBuffering property is false, the callback is raised as soon as the stream is available for reading which may be before all data has arrived.

If an application implements a custom WebRequest class and does not override the AllowReadStreamBuffering property, then the NotImplementedException is thrown.

Examples

HttpWebRequest_AllowReadStreamBuffering#1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference

Tags :


Page view tracker