Appearance
Serialize Method
Definition
- Namespace:
JASE.Web - Assembly:
JASE.Web.dll
SerializedActionResult Serialize(ActionContext context, object value)
csharp
SerializedActionResult Serialize(ActionContext context, object value)Serializes the provided payload into a response body for the current action context.
Parameters
| Name | Description |
|---|---|
context | The ActionContext for the current request. |
value | The payload value to serialize. |
Returns
A SerializedActionResult containing the serialized response body bytes and the associated content type.
Remarks
Implementations may inspect the current request, including headers such as Accept, in order to determine the most appropriate response format.