Bewerken

Delen via


QualificationDataItem Struct

Definition

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

public value class QualificationDataItem
[System.Serializable]
public struct QualificationDataItem
[<System.Serializable>]
type QualificationDataItem = struct
Public Structure QualificationDataItem
Inheritance
QualificationDataItem
Attributes

Examples

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}",
            token.Name,
            qdi.Segment,
            qdi.Name,
            qdi.Value);
    }
}
' 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)
    Next
Next

Remarks

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.

Properties

Name

Gets the name of the qualification data item.

Segment

Gets a value that identifies the pipeline segment the qualification data item was applied to.

Value

Gets the value of the qualification data item.

Methods

Equals(Object)

Determines whether a specified object is equal to the current qualification data item.

GetHashCode()

Gets the hash code for this qualification data item.

Operators

Equality(QualificationDataItem, QualificationDataItem)

Determines whether two QualificationDataItem structures are equal.

Inequality(QualificationDataItem, QualificationDataItem)

Determines whether two QualificationDataItem structures are different.

Applies to