.NET Framework Class Library
EmptyResult Class
Represents a result that does nothing, such as a controller action method that returns nothing.
Inheritance Hierarchy
System.Object
System.Web.Mvc.ActionResult
System.Web.Mvc.EmptyResult
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic (Declaration)
Public Class EmptyResult _ Inherits ActionResult
Visual Basic (Usage)
Dim instance As EmptyResult
C#
public class EmptyResult : ActionResult
Visual C++
public ref class EmptyResult : public ActionResult
JScript
public class EmptyResult extends ActionResult
The EmptyResult type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
|
EmptyResult | Initializes a new instance of the EmptyResult class. |
Methods
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Object.) |
|
ExecuteResult | Executes the specified result context. (Overrides ActionResult.ExecuteResult(ControllerContext).) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
MemberwiseClone | (Inherited from Object.) |
|
ToString | (Inherited from Object.) |
Remarks
This class follows a pattern known as the Null Object pattern.
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