Sdílet prostřednictvím


VirtualPathProviderViewEngine Class

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.VirtualPathProviderViewEngine
    System.Web.Mvc.WebFormViewEngine

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

Syntax

'Declaration
Public MustInherit Class VirtualPathProviderViewEngine _
    Implements IViewEngine
public abstract class VirtualPathProviderViewEngine : IViewEngine
public ref class VirtualPathProviderViewEngine abstract : IViewEngine

The VirtualPathProviderViewEngine type exposes the following members.

Constructors

  Name Description
Protected method VirtualPathProviderViewEngine Initializes a new instance of the VirtualPathProviderViewEngine class.

Top

Properties

  Name Description
Public property AreaMasterLocationFormats Gets or sets the area-enabled master location formats.
Public property AreaPartialViewLocationFormats Gets or sets the area-enabled partial-view location formats.
Public property AreaViewLocationFormats Gets or sets the area-enabled view location formats.
Public property MasterLocationFormats Gets or sets the master location formats.
Public property PartialViewLocationFormats Gets or sets the partial-view location formats.
Public property ViewLocationCache Gets or sets the view location cache.
Public property ViewLocationFormats Gets or sets the view location formats.
Protected property VirtualPathProvider Gets or sets the virtual path provider.

Top

Methods

  Name Description
Protected method CreatePartialView Creates the specified partial view by using the specified controller context.
Protected method CreateView Creates the specified view by using the controller context, path of the view, and path of the master view.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method FileExists Returns a value that indicates whether the file is in the specified path by using the specified controller context.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindPartialView Finds the specified partial view by using the specified controller context.
Public method FindView Finds the specified view by using the specified controller context and master view name.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ReleaseView Releases the specified view by using the specified controller context.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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

Thread Safety

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

See Also

Reference

System.Web.Mvc Namespace