Search Results for

    Show / Hide Table of Contents

    Interface IPluginStateHandler

    Represents an object that determines whether the user can enable or disable certain plug-ins. This is typically used in a user interface that allows plug-in management.

    Namespace: Sdl.Core.PluginFramework
    Assembly: Sdl.Core.PluginFramework.dll
    Syntax
    public interface IPluginStateHandler
    Remarks

    Assign an instance of this object to PluginStateHandler to use the handler for a particular plug-in registry.

    Methods

    CanDisable(IPlugin)

    Called by the framework to determine whether a certain plug-in can be disabled.

    Declaration
    bool CanDisable(IPlugin plugin)
    Parameters
    Type Name Description
    IPlugin plugin

    The plug-in to check.

    Returns
    Type Description
    bool

    true if the plug-in can be disabled.

    CanEnable(IPlugin)

    Called by the framework to determine whether a certain plug-in can be enabled.

    Declaration
    bool CanEnable(IPlugin plugin)
    Parameters
    Type Name Description
    IPlugin plugin

    The plug-in to check.

    Returns
    Type Description
    bool

    true if the plug-in can be enabled.

    In this article
    • Methods
      • CanDisable(IPlugin)
      • CanEnable(IPlugin)
    Back to top Generated by DocFX