C# 클래스 Disco.Web.Extensions.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
파일 보기 프로젝트 열기: garysharp/Disco

공개 메소드들

메소드 설명
ExecuteResult ( 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

Creates a new instance of the XmlResult class.

XmlResult ( object objectToSerialize, XmlAttributeOverrides xmlAttributeOverrides ) : System

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 ( ControllerContext context ) : void
context ControllerContext The controller context for the current request.
리턴 void

XmlResult() 공개 메소드

Creates a new instance of the XmlResult class.
public XmlResult ( object objectToSerialize ) : System
objectToSerialize object The object to serialize to XML.
리턴 System

XmlResult() 공개 메소드

Creates a new instance of the XMLResult class.
public XmlResult ( object objectToSerialize, XmlAttributeOverrides xmlAttributeOverrides ) : System
objectToSerialize object The object to serialize to XML.
xmlAttributeOverrides System.Xml.Serialization.XmlAttributeOverrides
리턴 System