AddInSegmentType Enumeración

Definición

Especifica el tipo de segmento de la canalización.Specifies the type of a pipeline segment.

public enum class AddInSegmentType
public enum AddInSegmentType
type AddInSegmentType = 
Public Enum AddInSegmentType
Herencia
AddInSegmentType

Campos

AddIn 5

Especifica un segmento del complemento.Specifies an add-in segment.

AddInSideAdapter 3

Especifica un segmento del adaptador de conversión.Specifies an add-in-side adapter segment.

AddInView 4

Especifica un segmento de vista del complemento.Specifies an add-in view segment.

Contract 2

Especifica un segmento de contrato.Specifies a contract segment.

HostSideAdapter 1

Especifica un segmento del adaptador del host.Specifies a host-side adapter segment.

HostViewOfAddIn 0

Especifica la vista del host del segmento del complemento.Specifies the host view of the add-in segment.

Ejemplos

En el ejemplo siguiente se AddInSegmentType usa la enumeración para evaluar los datos de calificación de un complemento.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"))
{
    // Create an external process.
    AddInProcess external = new AddInProcess();

    // Activate an add-in in the new process
    // with the full trust security level.
    Calculator CalcAddIn5 =
        selectedToken.Activate<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.");
' 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

Comentarios

En este contexto, el tipo de un segmento de canalización identifica la categoría de segmento de canalización: complemento, adaptador de complemento, vista de complemento, contrato, adaptador de host o la vista de host del complemento.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. Si la clase de un segmento de canalización tiene un QualificationDataAttribute atributo, puede obtener los datos especificados en el atributo con la AddInToken QualificationData propiedad de un objeto.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.

Se aplica a