CManagedComponentWrapperClass Klasse

Definition

public ref class CManagedComponentWrapperClass : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::CManagedComponentWrapper, Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSRuntimeComponent100
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("874F7595-FB5F-40FF-96AF-FBFF8250E3EF")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class CManagedComponentWrapperClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.CManagedComponentWrapper, Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSRuntimeComponent100
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("874F7595-FB5F-40FF-96AF-FBFF8250E3EF")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FAggregatable | System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type CManagedComponentWrapperClass = class
    interface IDTSDesigntimeComponent100
    interface CManagedComponentWrapper
    interface IDTSRuntimeComponent100
Public Class CManagedComponentWrapperClass
Implements CManagedComponentWrapper, IDTSRuntimeComponent100
Vererbung
CManagedComponentWrapperClass
Attribute
Implementiert

Beispiele

Das folgende Codebeispiel fügt einer Datenflussaufgabe eine Komponente hinzu und ruft eine Instanz der CManagedComponentWrapper-Schnittstelle ab, indem die Instanziate-Methode aufgerufen wird.

Package p = new Package();  
MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;  

IDTSComponentMetaData100 md = mp.ComponentMetaDataCollection.New();  
md.ComponentClassID = "DTSAdapter.OleDbSource";  

CManagedComponentWrapper wrp = md.Instantiate();  

Hinweise

Die CManagedComponentWrapperClass repräsentiert die Designzeitinstanz einer Datenflusskomponente und ist das Objekt, das bei der programmatischen Änderung einer Komponente in einer Datenflussaufgabe verwendet wird. Die Methoden dieser Klasse werden durch die IDTSDesigntimeComponent100-Schnittstelle definiert und dienen dazu, die Eigenschaften und Sammlungen zu modifizieren. Die CManagedComponentWrapper-Schnittstelle wird zurückgegeben, wenn die Instanziate-Methode der IDTSComponentMetaData100-Schnittstelle der Komponente aufgerufen wird. Diese Schnittstelle kann in eine Instanz der CManagedComponentWrapperClass gecastet werden, aber es gibt keine Vorteile dabei. Daher wird diese Klasse typischerweise nicht verwendet.

Konstruktoren

Name Beschreibung
CManagedComponentWrapperClass()

Eigenschaften

Name Beschreibung
BufferManager
ComponentMetaData
EventInfos
LogEntryInfos
ReferenceTracker
RequiredProductLevel
VariableDispenser

Methoden

Name Beschreibung
AcquireConnections(Object)
Cleanup()
DeleteExternalMetadataColumn(Int32, Int32)
DeleteInput(Int32)
DeleteOutput(Int32)
DeleteOutputColumn(Int32, Int32)
DescribeRedirectedErrorCode(Int32)
GetEnumerationCollection(String)
InsertExternalMetadataColumnAt(Int32, Int32, String, String)
InsertInput(DTSInsertPlacement, Int32)
InsertOutput(DTSInsertPlacement, Int32)
InsertOutputColumnAt(Int32, Int32, String, String)
MapInputColumn(Int32, Int32, Int32)
MapOutputColumn(Int32, Int32, Int32, Boolean)
OnDeletingInputColumn(Int32, Int32)
OnInputPathAttached(Int32)
OnInputPathDetached(Int32)
OnOutputPathAttached(Int32)
PerformUpgrade(Int32)
PostExecute()
PreExecute()
PrepareForExecute()
PrimeOutput(Int32, Int32, IDTSBuffer100)
ProcessInput(Int32, IDTSBuffer100)
ProvideComponentProperties()
ReinitializeMetaData()
ReleaseConnections()
SetComponentProperty(String, Object)
SetExternalMetadataColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)
SetExternalMetadataColumnProperty(Int32, Int32, String, Object)
SetInputColumnProperty(Int32, Int32, String, Object)
SetInputProperty(Int32, String, Object)
SetOutputColumnDataTypeProperties(Int32, Int32, DataType, Int32, Int32, Int32, Int32)
SetOutputColumnProperty(Int32, Int32, String, Object)
SetOutputProperty(Int32, String, Object)
SetUsageType(Int32, IDTSVirtualInput100, Int32, DTSUsageType)
Validate()

Gilt für:

Threadsicherheit

Alle öffentlichen statischen (in Visual Basic geteilten) Mitglieder dieses Typs sind threadsicher. Instanzenmitglieder sind nicht garantiert threadsicher.