Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 : 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:
© 2017 Microsoft