Partager via


Classe CManagedComponentWrapperClass

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

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Assembly :  Microsoft.SqlServer.DTSPipelineWrap (en Microsoft.SqlServer.DTSPipelineWrap.dll)

Syntaxe

'Déclaration
<GuidAttribute("2E42D45B-F83C-400F-8D77-61DDE6A7DF29")> _
<ClassInterfaceAttribute()> _
Public Class CManagedComponentWrapperClass _
    Implements IDTSDesigntimeComponent100, CManagedComponentWrapper, IDTSRuntimeComponent100
'Utilisation
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

Le type CManagedComponentWrapperClass expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique CManagedComponentWrapperClass Instantiates an instance of the CManagedComponentWrapperClass object.

Haut de la page

Propriétés

  Nom Description
Propriété publique BufferManager Sets the IDTSBufferManager100 object of the component.
Propriété publique ComponentMetaData Sets the IDTSComponentMetaData100 object for the component
Propriété publique EventInfos Sets the IDTSEventInfos100 collection that is associated with the component.
Propriété publique LogEntryInfos Gets the IDTSLogEntryInfos100 object to the component.
Propriété publique ReferenceTracker Sets the IDTSObjectReferenceTracker100 object that is associated with the component.
Propriété publique RequiredProductLevel Gets a value that indicates which edition of SQL Server the data flow component requires.
Propriété publique VariableDispenser Sets the IDTSVariableDispenser100 object that is associated with the component.

Haut de la page

Méthodes

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

Haut de la page

Notes

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.

Exemples

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();

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.