C# Класс MvcContrib.ActionResults.XmlResult

Action result that serializes the specified object into XML and outputs it to the response stream. people = _peopleService.GetPeople(); return new XmlResult(people); } ]]>
Наследование: System.Web.Mvc.ActionResult
Показать файл Открыть проект

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

Метод Описание
ExecuteResult ( System.Web.Mvc.ControllerContext context ) : void

Serialises the object that was passed into the constructor to XML and writes the corresponding XML to the result stream.

XmlResult ( object objectToSerialize ) : System.Web.Mvc

Creates a new instance of the XmlResult class.

XmlResult ( object objectToSerialize, XmlAttributeOverrides xmlAttributeOverrides ) : System.Web.Mvc

Creates a new instance of the XMLResult class.

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

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

Serialises the object that was passed into the constructor to XML and writes the corresponding XML to the result stream.
public ExecuteResult ( System.Web.Mvc.ControllerContext context ) : void
context System.Web.Mvc.ControllerContext The controller context for the current request.
Результат void

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

Creates a new instance of the XmlResult class.
public XmlResult ( object objectToSerialize ) : System.Web.Mvc
objectToSerialize object The object to serialize to XML.
Результат System.Web.Mvc

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

Creates a new instance of the XMLResult class.
public XmlResult ( object objectToSerialize, XmlAttributeOverrides xmlAttributeOverrides ) : System.Web.Mvc
objectToSerialize object The object to serialize to XML.
xmlAttributeOverrides System.Xml.Serialization.XmlAttributeOverrides
Результат System.Web.Mvc