Export (0) Print
Expand All

EmptyResult Class

Represents a result that does nothing, such as a controller action method that returns nothing.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public class EmptyResult extends ActionResult

The EmptyResult type exposes the following members.

  NameDescription
Public methodEmptyResultInitializes a new instance of the EmptyResult class.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodExecuteResultExecutes the specified result context. (Overrides ActionResult.ExecuteResult(ControllerContext).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

This class follows a pattern known as the Null Object pattern.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft