AddInSegmentType Enumeration
Specifies the type of a pipeline segment.
Assembly: System.AddIn (in System.AddIn.dll)
| Member name | Description | |
|---|---|---|
| HostViewOfAddIn | Specifies the host view of the add-in segment. | |
| HostSideAdapter | Specifies a host-side adapter segment. | |
| Contract | Specifies a contract segment. | |
| AddInSideAdapter | Specifies an add-in-side adapter segment. | |
| AddInView | Specifies an add-in view segment. | |
| AddIn | Specifies an 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, _ AddInSecurityLevel.FullTrust) Console.WriteLine("Add-in activated per qualification data.") Else Console.WriteLine("This add-in is not designated to be activated in a new process.") End If
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.