This documentation is archived and is not being maintained.

QualificationDataItem Structure

Represents information supplied by the developer of a pipeline segment, for use by the host.

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

public struct QualificationDataItem

The QualificationDataItem type exposes the following members.

Public propertyNameGets the name of the qualification data item.
Public propertySegmentGets a value that identifies the pipeline segment the qualification data item was applied to.
Public propertyValueGets the value of the qualification data item.

Public methodEqualsDetermines whether a specified object is equal to the current qualification data item. (Overrides ValueType.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets the hash code for this qualification data item. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)

Public operatorStatic memberEqualityDetermines whether two QualificationDataItem structures are equal.
Public operatorStatic memberInequalityDetermines whether two QualificationDataItem structures are different.

Each item of qualification data consists of a name/value pair that was applied to a pipeline segment by using the QualificationDataAttribute attribute, to provide information that qualifies the use of the segment (for example, the recommended isolation level for the segment). The QualificationDataItem structure contains one name/value pair and the type of pipeline segment it was applied to.

Use the AddInToken.QualificationData property to get a nested set of dictionaries that contains QualificationDataItem structures for the pipeline segments associated with an AddInToken.

Alternatively, use the AddInToken.GetEnumerator method to get an enumerator for the QualificationDataItem structures of the pipeline segments associated with a token, or simply use a foreach statement (For Each in Visual Basic, for each in Visual C++) to treat the token as if it were a collection of QualificationDataItem structures.

The following example lists the qualification data for the pipeline segments associated with each AddInToken in a collection of tokens.

// Show the qualification data for each
// token in an AddInToken collection.
foreach (AddInToken token in tokens)
    foreach (QualificationDataItem qdi in token)
        Console.WriteLine("{0} {1}\n\t QD Name: {2}, QD Value: {3}",

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

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