Classe CManagedComponentWrapperClass

Represents the design-time instance of a data flow component.

Gerarchia di ereditarietà

System. . :: . .Object
  Microsoft.SqlServer.Dts.Pipeline.Wrapper..::..CManagedComponentWrapperClass

Spazio dei nomi  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly:  Microsoft.SqlServer.DTSPipelineWrap (in Microsoft.SqlServer.DTSPipelineWrap.dll)

Sintassi

'Dichiarazione
<GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")> _
<ClassInterfaceAttribute()> _
Public Class CManagedComponentWrapperClass _
    Implements IDTSDesigntimeComponent100, CManagedComponentWrapper, IDTSRuntimeComponent100
'Utilizzo
Dim instance As CManagedComponentWrapperClass
[GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")]
[ClassInterfaceAttribute()]
public class CManagedComponentWrapperClass : IDTSDesigntimeComponent100, 
    CManagedComponentWrapper, IDTSRuntimeComponent100
[GuidAttribute(L"2E42D45B-F83C-400F-8D77-61DDE6A7DF29")]
[ClassInterfaceAttribute()]
public ref class CManagedComponentWrapperClass : IDTSDesigntimeComponent100, 
    CManagedComponentWrapper, IDTSRuntimeComponent100
[<GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")>]
[<ClassInterfaceAttribute()>]
type CManagedComponentWrapperClass =  
    class
        interface IDTSDesigntimeComponent100
        interface CManagedComponentWrapper
        interface IDTSRuntimeComponent100
    end
public class CManagedComponentWrapperClass implements IDTSDesigntimeComponent100, CManagedComponentWrapper, IDTSRuntimeComponent100

Nel tipo CManagedComponentWrapperClass sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico CManagedComponentWrapperClass Instantiates an instance of the CManagedComponentWrapperClass object.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica BufferManager Sets the IDTSBufferManager100 object of the component.
Proprietà pubblica ComponentMetaData Sets the IDTSComponentMetaData100 object for the component
Proprietà pubblica EventInfos Sets the IDTSEventInfos100 collection that is associated with the component.
Proprietà pubblica LogEntryInfos Gets the IDTSLogEntryInfos100 object to the component.
Proprietà pubblica ReferenceTracker Sets the IDTSObjectReferenceTracker100 object that is associated with the component.
Proprietà pubblica RequiredProductLevel Gets a value that indicates which edition of SQL Server the data flow component requires.
Proprietà pubblica VariableDispenser Sets the IDTSVariableDispenser100 object that is associated with the component.

In alto

Metodi

  Nome Descrizione
Metodo pubblico AcquireConnections Establishes a connection to a connection manager.
Metodo pubblico Cleanup Frees resources and cleans up after the component runs.
Metodo pubblico DeleteExternalMetadataColumn Deletes the external metadata column at the specified index from the collection of external metadata columns.
Metodo pubblico DeleteInput Deletes an IDTSInput100 object from the IDTSInputCollection100 collection.
Metodo pubblico DeleteOutput Deletes an IDTSOutput100 object from the IDTSOutputCollection100 collection of the component.
Metodo pubblico DeleteOutputColumn Deletes an IDTSOutputColumn100 object from the IDTSOutputColumnCollection100 collection of the component.
Metodo pubblico DescribeRedirectedErrorCode Returns the description of an error code defined by the component.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetEnumerationCollection Returns the IDTSFriendlyEnumCollection100 specified by the
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico InsertExternalMetadataColumnAt Inserts a new external metadata column into the collection of external metadata columns at the specified index.
Metodo pubblico InsertInput Adds an IDTSInput100 object to the IDTSInputCollection100 of the component.
Metodo pubblico InsertOutput Adds a new IDTSOutput100 object to the component.
Metodo pubblico InsertOutputColumnAt Creates a new IDTSOutputColumn100 object and inserts it into the IDTSOutputColumnCollection100 of the component.
Metodo pubblico MapInputColumn Establishes a relationship between an input column and a corresponding external metadata column.
Metodo pubblico MapOutputColumn Establishes a relationship between an IDTSOutputColumn100 column and a corresponding IDTSExternalMetadataColumn100 column.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico OnDeletingInputColumn Called when an IDTSInputColunn100 object is being deleted from an IDTSInputColumnCollection100 of the component.
Metodo pubblico OnInputPathAttached Called when an IDTSInput100 object of the component is attached to a downstream component.
Metodo pubblico OnInputPathDetached Called when the IDTSInput100 object of the component is disconnected from an upstream component.
Metodo pubblico OnOutputPathAttached Called when an IDTSOutput100 object of the component is attached to a downstream component.
Metodo pubblico PerformUpgrade Upgrades the metadata of the component to the version of the component that is installed on the local computer.
Metodo pubblico PostExecute Does the tasks that have to be done after the component has finished processing rows of data.
Metodo pubblico PreExecute Does the tasks that have to be done after the PrepareForExecute method runs, but before the component begins to process rows of data.
Metodo pubblico PrepareForExecute Does the tasks that have to be done both before the component begins to process rows of data and before the PreExecute method runs.
Metodo pubblico PrimeOutput Adds rows to the output buffers in the data flow.
Metodo pubblico ProcessInput Processes the rows of data that are received in input buffers from upstream components.
Metodo pubblico ProvideComponentProperties Initializes or resets the IDTSComponentMetaData100 of the component.
Metodo pubblico ReinitializeMetaData Called to allow the component to repair problems with the IDTSComponentMetaData100 object that were identified by the component during the Validate method.
Metodo pubblico ReleaseConnections Frees the connections established by the component during AcquireConnections.
Metodo pubblico SetComponentProperty Assigns a value to a IDTSCustomProperty100 of the component.
Metodo pubblico SetExternalMetadataColumnDataTypeProperties Sets the data type properties of the specified external metadata column.
Metodo pubblico SetExternalMetadataColumnProperty Sets an individual property on an external metadata column.
Metodo pubblico SetInputColumnProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInputColumn100 object.
Metodo pubblico SetInputProperty Assigns a value to the IDTSCustomProperty100 of an IDTSInput100 object in the component.
Metodo pubblico SetOutputColumnDataTypeProperties Sets the data type properties of an IDTSOutputColumn100 object.
Metodo pubblico SetOutputColumnProperty Assigns a value to the IDTSCustomProperty100 of an IDTSOutputColumn100 object.
Metodo pubblico SetOutputProperty Call this method to set the IDTSCustomProperty100 of an IDTSOutput100 object of the component.
Metodo pubblico SetUsageType Creates an IDTSInputColumn100 object in the IDTSInputColumnCollection100 of the component and sets the UsageType property of the column.
Metodo pubblico ToString Ereditato da Object.
Metodo pubblico Validate Verifies that the component is configured correctly and ready to execute.

In alto

Osservazioni

The CManagedComponentWrapperClass represents the design-time instance of a data flow component and is the object that is used when programmatically modifying a component in a data flow task. The methods of this class are defined by the IDTSDesigntimeComponent100 interface and are used to modify the properties and collections component. The CManagedComponentWrapper interface is returned when the Instantiate method of the IDTSComponentMetaData100 interface of the component is called. This interface can be cast to an instance of the CManagedComponentWrapperClass but there are no advantages to doing this Therefore, typically this class is not used.

Esempi

The following code example adds a component to a data flow task and retrieves an instance of the CManagedComponentWrapper interface by calling the Instantiate method.

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

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

CManagedComponentWrapper wrp = md.Instantiate();

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.