IDtsComponentUI.Initialize Method (IDTSComponentMetaData100, IServiceProvider)
Called to initialize the user interface of the component.
Assembly: Microsoft.SqlServer.Dts.Design (in Microsoft.SqlServer.Dts.Design.dll)
void Initialize( IDTSComponentMetaData100 dtsComponentMetadata, IServiceProvider serviceProvider )
The IDTSComponentMetaData100 of the component.
The http://go.microsoft.com/fwlink/?LinkId=33994 IServiceProvider interface provided by the SSIS designer.
Cache the object reference received in the dtsComponentMetadata parameter and use it in the Edit method to make changes to your component as the user interacts with your user interface. Typically, you must also pass this object reference to any supporting classes that you may create, such as a form class, to implement editing functionality for a component.
The serviceProvider parameter provides access to the services of the SSIS Designer. The following table shows the available services in the SSIS Designer.
Determines whether the component was generated as part of a copy/paste or cut/paste operation.
Accesses existing and creates new connections in the package.
Provides methods that let Integration Services developers invoke the Expression Builder dialog box programmatically.
Gives data flow components access to the parent Data Flow task and its TaskHost container.
Accesses existing or creates new variables in the package.
Captures events from data flow components when you have to capture all the errors and warnings raised by the component instead of receiving only the last error or warning.
These services provide component developers the ability to access and create objects in the package in which the component is loaded.