Export (0) Print
Expand All

AddInSegmentType Enumeration

Specifies the type of a pipeline segment.

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

Public Enumeration AddInSegmentType

Member nameDescription
AddInSpecifies an add-in segment.
AddInSideAdapterSpecifies an add-in-side adapter segment.
AddInViewSpecifies an add-in view segment.
ContractSpecifies a contract segment.
HostSideAdapterSpecifies a host-side adapter segment.
HostViewOfAddInSpecifies the host view of the add-in segment.

In this context, the type of a pipeline segment identifies the category of pipeline segment: add-in, add-in-side adapter, add-in view, contract, host-side adapter, or the host view of the add-in. If a pipeline segment's class has a QualificationDataAttribute attribute, you can obtain the data specified in the attribute with the QualificationData property of an AddInToken object.

The following example uses the AddInSegmentType enumeration to evaluate an add-in's qualification data.

' Use qualification data to control 
' how an add-in should be activated. 

If selectedToken.QualificationData(AddInSegmentType.AddIn)("Isolation").Equals("NewProcess") Then 
    ' Create an external process. 
    Dim external As AddInProcess = New AddInProcess

    ' Activate an add-in in an automatically generated 
    ' application domain with a full trust security level. 
    Dim CalcAddin5 As Calculator = _
        selectedToken.Activate(Of Calculator)(external, _
    Console.WriteLine("Add-in activated per qualification data.")
    Console.WriteLine("This add-in is not designated to be activated in a new process.")
End If

.NET Framework

Supported in: 4.6, 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.

© 2014 Microsoft