Search Results for

    Show / Hide Table of Contents

    Class SortableExtensionAttribute

    Base class for extension attributes that allow specifying topological sort information.

    Inheritance
    System.Object
    ExtensionAttribute
    SortableExtensionAttribute
    Inherited Members
    ExtensionAttribute.Validate(IExtensionAttributeInfo, IExtensionValidationContext)
    ExtensionAttribute.ValidateId(IExtensionAttributeInfo, IExtensionValidationContext)
    ExtensionAttribute.ValidateName(IExtensionAttributeInfo, IExtensionValidationContext)
    ExtensionAttribute.Id
    ExtensionAttribute.Name
    ExtensionAttribute.Description
    ExtensionAttribute.Icon
    Namespace: Sdl.Core.PluginFramework.Util
    Assembly: Sdl.Core.PluginFramework.dll
    Syntax
    public class SortableExtensionAttribute : ExtensionAttribute
    Remarks

    Use this attribute as a base when developing extension points that require the ability for their extensions to specify the order in which they should be used.

    In order to consume extensions of a sortable extension point, use SortedObjectRegistry<TSortableExtensionAttribute, TExtensionType> if you want to create all extension instances at once. Use the TopologicalSort<T> class if you need more control over when the extensions are instantiated.

    Constructors

    SortableExtensionAttribute()

    Default constructor for XML serialization.

    Declaration
    public SortableExtensionAttribute()

    SortableExtensionAttribute(String, String, String)

    Constructor with required attributes.

    Declaration
    public SortableExtensionAttribute(string id, string name, string description)
    Parameters
    Type Name Description
    System.String id

    The unique id for the extension.

    System.String name

    The name for the extension. Should typically be a key of a resource string in PluginResources.resx.

    System.String description

    The description for the extension. Should typically be a key of a resource string in PluginResources.resx.

    Properties

    InsertAfter

    Gets or sets the id of the extension after which this extension should be inserted.

    Declaration
    public string InsertAfter { get; set; }
    Property Value
    Type Description
    System.String

    InsertBefore

    Gets or sets the id of the extension before which this extension should be inserted.

    Declaration
    public string InsertBefore { get; set; }
    Property Value
    Type Description
    System.String

    On this page

    • Constructors
      • SortableExtensionAttribute()
      • SortableExtensionAttribute(String, String, String)
    • Properties
      • InsertAfter
      • InsertBefore
    Back to top Generated by DocFX