Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VirtualPathProviderViewEngine Class

Represents an abstract base-class implementation of the IViewEngine interface.


Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public abstract class VirtualPathProviderViewEngine : IViewEngine

The VirtualPathProviderViewEngine type exposes the following members.

Protected methodVirtualPathProviderViewEngineInitializes a new instance of the VirtualPathProviderViewEngine class.

Public propertyAreaMasterLocationFormatsGets or sets the area-enabled master location formats.
Public propertyAreaPartialViewLocationFormatsGets or sets the area-enabled partial-view location formats.
Public propertyAreaViewLocationFormatsGets or sets the area-enabled view location formats.
Protected propertyDisplayModeProviderGets or sets the display mode provider.
Public propertyFileExtensionsGets or sets the file-name extensions that are used to locate a view.
Public propertyMasterLocationFormatsGets or sets the master location formats.
Public propertyPartialViewLocationFormatsGets or sets the partial-view location formats.
Public propertyViewLocationCacheGets or sets the view location cache.
Public propertyViewLocationFormatsGets or sets the view location formats.
Protected propertyVirtualPathProviderGets or sets the virtual path provider.

Protected methodCreatePartialViewCreates the specified partial view by using the specified controller context.
Protected methodCreateViewCreates the specified view by using the controller context, path of the view, and path of the master view.
Public methodEquals (Inherited from Object.)
Protected methodFileExistsReturns a value that indicates whether the file is in the specified path by using the specified controller context.
Protected methodFinalize (Inherited from Object.)
Public methodFindPartialViewFinds the specified partial view by using the specified controller context.
Public methodFindViewFinds the specified view by using the specified controller context and master view name.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReleaseViewReleases the specified view by using the specified controller context.
Public methodToString (Inherited from Object.)

You can use this class as a starting point for building a view engine that relies on the VirtualPathProviderViewEngine class to access view files.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2018 Microsoft