Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VirtualFileBase Class

Provides the core implementation for the VirtualFile and VirtualDirectory objects. An abstract class, it cannot be instantiated.

Namespace: System.Web.Hosting
Assembly: System.Web (in system.web.dll)
public abstract class VirtualFileBase : MarshalByRefObject
public abstract class VirtualFileBase extends MarshalByRefObject
public abstract class VirtualFileBase extends MarshalByRefObject
Not applicable.

The VirtualFileBase abstract class provides the common methods and properties shared between the VirtualFile and VirtualDirectory objects. Implementations of these classes provide the ASP.NET runtime with access to files and paths used for compilation. For more information on using virtual files and paths, see the VirtualPathProvider class.

Notes to Inheritors: When you inherit from the VirtualFileBase class, you must override the IsDirectory property to indicate whether the derived object is a virtual directory or a virtual file. If you derive from either the VirtualFile or the VirtualDirectory class, the IsDirectory property is already set.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.