DataContractXmlActionResult Class
Represents an ActionResult that can render an object to the xml format using the DataContractSerializer.
Namespace: Microsoft.Web.Mvc.Resources
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Inheritance Hierarchy
System.Object
System.Web.Mvc.ActionResult
Microsoft.Web.Mvc.Resources.DataContractXmlActionResult
Syntax
public class DataContractXmlActionResult : ActionResult
public ref class DataContractXmlActionResult : ActionResult
type DataContractXmlActionResult =
class
inherit ActionResult
end
Public Class DataContractXmlActionResult
Inherits ActionResult
Constructors
Name | Description | |
---|---|---|
DataContractXmlActionResult(Object) | Initializes a new instance of the DataContractXmlActionResult class. The content type of the response defaults to application/xml |
|
DataContractXmlActionResult(Object, ContentType) | Initializes a new instance of the DataContractXmlActionResult class. |
Properties
Name | Description | |
---|---|---|
ContentType | Gets the content-type header. |
|
Data | Gets the data for this DataContractXmlActionResult. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
ExecuteResult(ControllerContext) | Enables processing of the result of an action method by a custom type that inherits from the ActionResult class.(Overrides ActionResult.ExecuteResult(ControllerContext).) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
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
Microsoft.Web.Mvc.Resources Namespace
Return to top