This documentation is archived and is not being maintained.

AddInAttribute Class

Identifies an object as an add-in.

Namespace:  System.AddIn
Assembly:  System.AddIn (in System.AddIn.dll)

public sealed class AddInAttribute : Attribute

The following methods, which maintain the store of information about available pipeline segments, use this attribute to identify an add-in.

This attribute is not required when an add-in is found exclusively by the FindAddIn method. The host has already identified the add-in by its type name and location, and therefore the attribute is not required for the add-in to be discovered.

This attribute should be used only on types that activate the segments of the pipeline. Types that represent objects passed between the host and the add-in do not need this attribute.

The following example identifies an add-in.

// This pipeline segment has 
// two attributes: 
// 1 - An AddInAttribute to identify 
//     this segment as an add-in. 
// 2 - A QualificationDataAttribute to 
//     indicate that the add-in should 
//     be loaded into a new application domain.

    [AddIn("Calculator Add-in",Version="")]
    [QualificationData("Isolation", "NewAppDomain")]
    public class SampleV2AddIn : Calculator2


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5