VirtualPathProvider.OpenFile Method (String)
.NET Framework (current version)
Returns a stream from a virtual file.
Assembly: System.Web (in System.Web.dll)
Parameters
- virtualPath
-
Type:
System.String
The path to the virtual file.
Return Value
Type: System.IO.StreamA read-only Stream object for the specified virtual file or resource.
The OpenFile method is a convenience method that enables you to get a stream from a virtual file without creating a VirtualPathProvider instance.
.NET Framework
Available since 2.0
Available since 2.0
Show: