Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

<SerializableAttribute> _
Public Structure 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).)
Public methodGetHashCodeGets the hash code for this qualification data item. (Overrides ValueType.GetHashCode.)
Public methodGetTypeGets the Type of the current instance. (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. 
For Each token As AddInToken In tokens
    For Each qdi As QualificationDataItem In token
        Console.WriteLine("{0} {1}\n\t QD Name: {2}, QD Value: {3}", _
            token.Name, qdi.Segment, qdi.Name, qdi.Value)

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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