Class MappedVirtualFile
Virtual file implementation for mapping a virtual path to another virtual path, making a System.Web.Hosting.VirtualFile available in additional locations. Used by the VirtualPathMappedProvider
Inheritance
System.Object
MappedVirtualFile
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7Syntax
public class MappedVirtualFile : VirtualFile
Constructors
MappedVirtualFile(String, VirtualFile)
Initializes a new instance of the MappedVirtualFile class.
Declaration
public MappedVirtualFile(string originalName, VirtualFile actualFile)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalName | Original name of the file. |
System.Web.Hosting.VirtualFile | actualFile | The actual file. |
Properties
IsDirectory
Gets a value that indicates that this is a virtual resource that should be treated as a file.
Declaration
public override bool IsDirectory { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Open()
When overridden in a derived class, returns a read-only stream to the virtual resource.
Declaration
public override Stream Open()
Returns
Type | Description |
---|---|
System.IO.Stream | A read-only stream to the virtual file. |