Class JavaScriptResult
Represents a raw JavaScript response from a controller action.
Inheritance
Microsoft.AspNetCore.Mvc.ContentResult
JavaScriptResult
Namespace: XploRe.AspNetCore.Mvc
Assembly: XploRe.AspNetCore.Mvc.dll
Syntax
public class JavaScriptResult : ContentResult
Constructors
Name | Description |
---|---|
JavaScriptResult() | Initialises a new JavaScriptResult response. |
JavaScriptResult(String) | Initialises a new JavaScriptResult response with the given JavaScript code. |
Fields
Name | Description |
---|---|
DefaultContentType | The default content-type for JavaScript. |