Search Results for

    Show / Hide Table of Contents

    Class ContextMenuCheckBaseAttribute

    The base class for a pre-execution check for a context menu.

    Inheritance
    System.Object
    System.Attribute
    ContextMenuCheckBaseAttribute
    Namespace: DisCatSharp.ApplicationCommands
    Assembly: DisCatSharp.ApplicationCommands.dll
    Syntax
    public abstract class ContextMenuCheckBaseAttribute : Attribute

    Methods

    | Improve this Doc View Source

    ExecuteChecksAsync(ContextMenuContext)

    Checks whether this command can be executed within the current context.

    Declaration
    public abstract Task<bool> ExecuteChecksAsync(ContextMenuContext ctx)
    Parameters
    Type Name Description
    ContextMenuContext ctx

    The context.

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    Whether the checks passed.

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems