VirtualPathProvider.OpenFile(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a stream from a virtual file.
public:
static System::IO::Stream ^ OpenFile(System::String ^ virtualPath);
public static System.IO.Stream OpenFile (string virtualPath);
static member OpenFile : string -> System.IO.Stream
Public Shared Function OpenFile (virtualPath As String) As Stream
Parameters
- virtualPath
- String
The path to the virtual file.
Returns
A read-only Stream object for the specified virtual file or resource.
Remarks
The OpenFile method is a convenience method that enables you to get a stream from a virtual file without creating a VirtualPathProvider instance.
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.