AddInSegmentType AddInSegmentType AddInSegmentType AddInSegmentType Enum

Definition

Gibt den Typ eines Pipelinesegments an.Specifies the type of a pipeline segment.

public enum class AddInSegmentType
public enum AddInSegmentType
type AddInSegmentType = 
Public Enum AddInSegmentType
Vererbung
AddInSegmentTypeAddInSegmentTypeAddInSegmentTypeAddInSegmentType

Felder

AddIn AddIn AddIn AddIn 5

Gibt ein Add-In-Segment an.Specifies an add-in segment.

AddInSideAdapter AddInSideAdapter AddInSideAdapter AddInSideAdapter 3

Gibt ein Adaptersegment auf Add-In-Seite an.Specifies an add-in-side adapter segment.

AddInView AddInView AddInView AddInView 4

Gibt ein Add-In-Ansichtssegment an.Specifies an add-in view segment.

Contract Contract Contract Contract 2

Gibt ein Vertragssegment an.Specifies a contract segment.

HostSideAdapter HostSideAdapter HostSideAdapter HostSideAdapter 1

Gibt ein hostseitiges Adaptersegment an.Specifies a host-side adapter segment.

HostViewOfAddIn HostViewOfAddIn HostViewOfAddIn HostViewOfAddIn 0

Gibt die Hostansicht des Add-In-Segments an.Specifies the host view of the add-in segment.

Beispiele

Im folgenden Beispiel wird die AddInSegmentType Enumeration ein Add-in Qualifizierungsdaten ausgewertet.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

Hinweise

In diesem Kontext bezeichnet der Typ eines Pipelinesegments die Kategorie des Pipelinesegment:-Add-in, das Add-In-seitige Adapter, Add-In-Ansicht, Vertrag, hostseitige Adapter und die Hostansicht des Add-Ins.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. Eines Pipelinesegments verfügt eine QualificationDataAttribute -Attribut, rufen Sie Daten in das Attribut mit der angegebenen die QualificationData Eigenschaft eine AddInToken Objekt.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.

Gilt für: