AddInSegmentType AddInSegmentType AddInSegmentType AddInSegmentType Enum

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
AddInSegmentTypeAddInSegmentTypeAddInSegmentTypeAddInSegmentType

Campos

AddIn AddIn AddIn AddIn 5

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

AddInSideAdapter AddInSideAdapter AddInSideAdapter AddInSideAdapter 3

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

AddInView AddInView AddInView AddInView 4

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

Contract Contract Contract Contract 2

Especifica un segmento de contrato.Specifies a contract segment.

HostSideAdapter HostSideAdapter HostSideAdapter HostSideAdapter 1

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

HostViewOfAddIn HostViewOfAddIn HostViewOfAddIn 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 usa el AddInSegmentType enumeración para evaluar 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: adaptador de complemento, add-en-side, vista de complemento, contrato, adaptador del host o la vista 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 el QualificationData propiedad de un AddInToken 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