IDtsTaskUI.Initialize(TaskHost, IServiceProvider) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Associates a user interface with its task. Called by the client, which is usually the designer application.
public:
void Initialize(Microsoft::SqlServer::Dts::Runtime::TaskHost ^ taskHost, IServiceProvider ^ serviceProvider);
public void Initialize (Microsoft.SqlServer.Dts.Runtime.TaskHost taskHost, IServiceProvider serviceProvider);
abstract member Initialize : Microsoft.SqlServer.Dts.Runtime.TaskHost * IServiceProvider -> unit
Public Sub Initialize (taskHost As TaskHost, serviceProvider As IServiceProvider)
Parameters
- serviceProvider
- IServiceProvider
The http://go.microsoft.com/fwlink/?LinkId=33994 IServiceProvider interface provided by the designer.
Remarks
The first parameter, taskHost
, can be used by the client code to access the Variables collection found on the task host, or to view the DtsErrors collection.
When an entry point to the task's user interface is invoked, the designer calls this Initialize method, implemented by the task user interface, and provides the TaskHost and the service provider as parameters. These objects are stored locally and used in any subsequent method calls.