C# Класс Q42.Mvc.XsltViewEngine.XsltView

Наследование: IView, IViewDataContainer
Показать файл Открыть проект

Открытые методы

Метод Описание
Render ( System.Web.Mvc.ViewContext viewContext, TextWriter writer ) : void
XsltView ( ControllerContext controllerContext, string partialPath, PluginConstructor>.Dictionary pluginConstructors ) : System
XsltView ( ControllerContext controllerContext, string viewPath, string masterPath, PluginConstructor>.Dictionary pluginConstructors ) : System

Приватные методы

Метод Описание
GetDirectories ( string path ) : IEnumerable
addObject ( string name, object obj ) : void

Adds an object as parameter to the xsl, so it can be obtained from within xsl by a global param definition with the same name. The object will be serialized automatically if needed to.

getMediaType ( ) : string

Retrieves the media type set by the xsl's output element. This is done by reflection due to its protection level.

getXsl ( string fileName ) : XslCompiledTransform

Returns an Xsl file

resolvePath ( string path ) : string

Resolves a virtual path to an absolute path

Описание методов

Render() публичный Метод

public Render ( System.Web.Mvc.ViewContext viewContext, TextWriter writer ) : void
viewContext System.Web.Mvc.ViewContext
writer System.IO.TextWriter
Результат void

XsltView() публичный Метод

public XsltView ( ControllerContext controllerContext, string partialPath, PluginConstructor>.Dictionary pluginConstructors ) : System
controllerContext ControllerContext
partialPath string
pluginConstructors PluginConstructor>.Dictionary
Результат System

XsltView() публичный Метод

public XsltView ( ControllerContext controllerContext, string viewPath, string masterPath, PluginConstructor>.Dictionary pluginConstructors ) : System
controllerContext ControllerContext
viewPath string
masterPath string
pluginConstructors PluginConstructor>.Dictionary
Результат System