Export (0) Print
Expand All

QualificationDataItem.Segment Property

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

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

'Declaration
Public ReadOnly Property Segment As AddInSegmentType

Property Value

Type: System.AddIn.Hosting.AddInSegmentType
The kind of pipeline segment the data item was applied to.

When you enumerate qualification data, use this property to identify the qualification data that belongs to a particular segment of the pipeline.

NoteNote

The add-in model does not use qualification data that is applied to the host view of the add-in. As a result, when you enumerate qualification data you will not find any items whose Segment property is HostViewOfAddIn.

The following example lists the qualification data for the pipeline segments associated with each AddInToken in a collection of tokens. The Segment property is used to display the kind of segment.

' 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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft