System.Web.Hosting.VirtualFile.Open Method

When overridden in a derived class, returns a read-only stream to the virtual resource.

Syntax

public abstract System.IO.Stream Open ()

Returns

A read-only stream to the virtual file.

Remarks

The VirtualFile.Open method returns a stream containing the data treated as a file by the System.Web.Hosting.VirtualPathProvider class. The stream is read-only and is seekable (the System.IO.Stream.CanSeek property is true).

Requirements

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