QualificationDataItem.Name 属性

定义

获取限定数据项的名称。Gets the name of the qualification data item.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

属性值

限定数据项的名称。The name of the qualification data item.

示例

下面的示例列出了与标记集合中的每个AddInToken关联的管道段的限定数据。The following example lists the qualification data for the pipeline segments associated with each AddInToken in a collection of tokens. Name属性用于显示每个项的名称。The Name property is used to display the name of each item.

// 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 to consumers of the add-in. Name属性获取名称。The Name property gets the name. Value使用属性来获取值。Use the Value property to get the value.

适用于