C# Class XmlResult, code

Inheritance: ActionResult
Show file Open project: shendongnian/code Class Usage Examples

Public Methods

Method Description
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 )

Initializes a new instance of the XmlResult class.

Method Details

ExecuteResult() public method

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.
return void

XmlResult() public method

Initializes a new instance of the XmlResult class.
public XmlResult ( object objectToSerialize )
objectToSerialize object The object to serialize to XML.