QualificationDataItem 结构

定义

表示管线段的开发人员提供给宿主使用的信息。Represents information supplied by the developer of a pipeline segment, for use by the host.

public value class QualificationDataItem
[System.Serializable]
public struct QualificationDataItem
type QualificationDataItem = struct
Public Structure QualificationDataItem
继承
QualificationDataItem
属性

示例

下面的示例列出了与标记集合中的每个AddInToken关联的管道段的限定数据。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

注解

每个限定数据项都由一个名称/值对组成, 该名称/值对通过使用QualificationDataAttribute属性应用于管道段, 以提供限定段使用的信息 (例如, 分段的推荐隔离级别)。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). QualificationDataItem结构包含一个名称/值对以及它所应用到的管线段的类型。The QualificationDataItem structure contains one name/value pair and the type of pipeline segment it was applied to.

使用属性可获取嵌套字典集, 其中包含QualificationDataItem与关联的AddInToken管线段的结构。 AddInToken.QualificationDataUse the AddInToken.QualificationData property to get a nested set of dictionaries that contains QualificationDataItem structures for the pipeline segments associated with an AddInToken.

AddInToken.GetEnumerator或者, 使用方法获取与标记关联的管线段QualificationDataItem的结构的枚举器foreach , 或者只是使用语句 (For Each在 Visual Basic for each中的 Visual C++) 将令牌视为QualificationDataItem结构的集合。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.

属性

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.

方法

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.

操作员

Equality(QualificationDataItem, QualificationDataItem)

确定两个 QualificationDataItem 结构是否相等。Determines whether two QualificationDataItem structures are equal.

Inequality(QualificationDataItem, QualificationDataItem)

确定两个 QualificationDataItem 结构是否不同。Determines whether two QualificationDataItem structures are different.

适用于