Export (0) Print
Expand All

QualificationDataAttribute Class

Provides developer-specified data for a pipeline segment.

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

[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = true)]
public sealed class QualificationDataAttribute : Attribute

You can use this attribute to assign data, in the form of name-value string pairs, for any purpose to a pipeline segment. For example, you can indicate that an add-in should be loaded into an external process.

The Rebuild and Update methods, which maintain the store of information about available pipeline segments, use this attribute to identify a segment that has qualification data.

To access the qualification data for a pipeline segment, see the QualificationData property. To enumerate the data for all the pipeline segments, see the QualificationDataItem class.

Qualification data is only read by the host and is not consumed by the add-in system in any other way.

You can apply qualification data to a pipeline segment by placing a QualificationDataAttribute attribute next to the segment attribute. For more information about pipeline segments and their attributes, see Pipeline Development.

The following example applies qualification data to 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="2.0.0.0")]
    [QualificationData("Isolation", "NewAppDomain")]
    public class SampleV2AddIn : Calculator2
    {

System.Object
  System.Attribute
    System.AddIn.Pipeline.QualificationDataAttribute

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

Community Additions

ADD
Show:
© 2014 Microsoft