System.Web.Compilation.BuildProvider.OpenStream Method

Opens a stream for reading the virtual path of the current build provider object.

Syntax

protected System.IO.Stream OpenStream ()

Returns

An open System.IO.Stream that can be used to read the contents of the BuildProvider.VirtualPath.

Remarks

Use the System.IO.Stream.Read(Byte[], int, int) method on the returned System.IO.Stream object to read the contents of the virtual path for the System.Web.Compilation.BuildProvider object.

After calling the BuildProvider.OpenStream method, you must use the System.IO.Stream.Close method to close the System.IO.Stream object and free associated system resources.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0