logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ModalSelectOptionInput

    Input data transfer object for selecting a modal option.

    Inheritance
    object
    ModalSelectOptionInput
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Modal.Application.DTO
    Assembly: Serenity.Modal.Application.dll
    Syntax
    public class ModalSelectOptionInput
    Remarks

    This DTO encapsulates the necessary information to select a specific option in a modal dialog.

    Constructors

    ModalSelectOptionInput(string, int)

    Initializes a new instance of the ModalSelectOptionInput class.

    Declaration
    public ModalSelectOptionInput(string modalId, int optionIndex)
    Parameters
    Type Name Description
    string modalId

    The ID of the modal containing the option.

    int optionIndex

    The index of the option to select.

    Fields

    ModalId

    Declaration
    public string ModalId
    Field Value
    Type Description
    string

    The ID of the modal containing the option.

    OptionIndex

    Declaration
    public int OptionIndex
    Field Value
    Type Description
    int

    The index of the option to select.

    Methods

    ToString()

    Returns a string representation of the ModalSelectOptionInput instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the instance.

    Overrides
    object.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved