System.Web.Compilation.BuildProvider.OpenReader Method

Opens a text reader for reading from the virtual path of the current build provider object.

Syntax

protected System.IO.TextReader OpenReader ()

Returns

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

Remarks

Use the erload:System.IO.TextReader.Read method on the returned System.IO.TextReader object to read the contents of the BuildProvider.VirtualPath property for a System.Web.Compilation.BuildProvider object.

After calling the BuildProvider.OpenReader method, you must use the System.IO.TextReader.Close method to close the System.IO.TextReader 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