logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MenuCancel

    Use case for cancelling a menu.

    Inheritance
    object
    MenuCancel
    Implements
    ISyncUseCase<MenuCancelInput>
    IUseCase
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.Application.UseCases
    Assembly: Serenity.Menu.Application.dll
    Syntax
    public class MenuCancel : ISyncUseCase<MenuCancelInput>, IUseCase
    Remarks

    This class handles the logic for cancelling a menu by interacting with the menu presenter.

    Constructors

    MenuCancel(IMenuPresenter)

    Initializes a new instance of the MenuCancel class.

    Declaration
    public MenuCancel(IMenuPresenter presenter)
    Parameters
    Type Name Description
    IMenuPresenter presenter

    The menu presenter to be used for cancelling the menu.

    See Also
    IMenuPresenter

    Methods

    Execute(MenuCancelInput)

    Executes the menu cancel operation using the provided input data.

    Declaration
    public void Execute(MenuCancelInput input)
    Parameters
    Type Name Description
    MenuCancelInput input

    The input data containing the ID of the menu to be cancelled.

    Remarks

    This method interacts with the menu presenter to perform the cancel operation.

    See Also
    MenuCancelInput

    Implements

    ISyncUseCase<TInput>
    IUseCase

    See Also

    IMenuPresenter
    MenuCancelInput
    In this article
    © 2026 Serenity. All Rights Reserved