Search Results for

    Show / Hide Table of Contents

    Interface IExtension

    Represents an extension registered with a particular extension point within a particular plug-in.

    Namespace: Sdl.Core.PluginFramework
    Assembly: Sdl.Core.PluginFramework.dll
    Syntax
    public interface IExtension

    Properties

    AuxiliaryExtensionAttributes

    Returns the read-only collection of auxiliary extension attributes, specifying more information about this extension.

    Declaration
    AuxiliaryExtensionAttributeCollection AuxiliaryExtensionAttributes { get; }
    Property Value
    Type Description
    AuxiliaryExtensionAttributeCollection

    Enabled

    True when this extension is currently enabled.

    Declaration
    bool Enabled { get; }
    Property Value
    Type Description
    bool

    ExtensionAttribute

    Gets the extension attribute that represents this extension.

    Declaration
    ExtensionAttribute ExtensionAttribute { get; }
    Property Value
    Type Description
    ExtensionAttribute

    ExtensionPoint

    The extension point to which this extension contributes.

    Declaration
    IExtensionPoint ExtensionPoint { get; }
    Property Value
    Type Description
    IExtensionPoint

    ExtensionType

    Gets the extension implementation type.

    Declaration
    Type ExtensionType { get; }
    Property Value
    Type Description
    Type

    Plugin

    Gets the plug-in providing this extension.

    Declaration
    IPlugin Plugin { get; }
    Property Value
    Type Description
    IPlugin

    Methods

    CreateInstance()

    Creates a new instance of the extension implementation type.

    Declaration
    object CreateInstance()
    Returns
    Type Description
    object

    The newly created instance.

    GetAuxiliaryExtensionAttributes<T>()

    Gets the auxiliary extension attributes of the specified type.

    Declaration
    T[] GetAuxiliaryExtensionAttributes<T>() where T : AuxiliaryExtensionAttribute
    Returns
    Type Description
    T[]

    The auxiliary extension attributes of the requested type.

    Type Parameters
    Name Description
    T

    The type of auxiliary extension attributes to return.

    SetEnabled(bool)

    Enables or disables this extension.

    Declaration
    bool SetEnabled(bool enabled)
    Parameters
    Type Name Description
    bool enabled

    True to enable the extension.

    Returns
    Type Description
    bool

    True if disabling the extension does not require restarting the application, false otherwise.

    Validate()

    Validates this extension.

    Declaration
    void Validate()

    Events

    EnabledChanged

    Raised when the Enabled property changes.

    Declaration
    event EventHandler<ExtensionEventArgs> EnabledChanged
    Event Type
    Type Description
    EventHandler<ExtensionEventArgs>
    In this article
    • Properties
      • AuxiliaryExtensionAttributes
      • Enabled
      • ExtensionAttribute
      • ExtensionPoint
      • ExtensionType
      • Plugin
    • Methods
      • CreateInstance()
      • GetAuxiliaryExtensionAttributes<T>()
      • SetEnabled(bool)
      • Validate()
    • Events
      • EnabledChanged
    Back to top Generated by DocFX