共用方式為


DataProfilingTask.Execute Method

Definition

Runs the Data Profiling task.

public:
 override Microsoft::SqlServer::Dts::Runtime::DTSExecResult Execute(Microsoft::SqlServer::Dts::Runtime::Connections ^ connections, Microsoft::SqlServer::Dts::Runtime::VariableDispenser ^ variableDispenser, Microsoft::SqlServer::Dts::Runtime::IDTSComponentEvents ^ componentEvents, Microsoft::SqlServer::Dts::Runtime::IDTSLogging ^ log, System::Object ^ transaction);
public override Microsoft.SqlServer.Dts.Runtime.DTSExecResult Execute (Microsoft.SqlServer.Dts.Runtime.Connections connections, Microsoft.SqlServer.Dts.Runtime.VariableDispenser variableDispenser, Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents componentEvents, Microsoft.SqlServer.Dts.Runtime.IDTSLogging log, object transaction);
override this.Execute : Microsoft.SqlServer.Dts.Runtime.Connections * Microsoft.SqlServer.Dts.Runtime.VariableDispenser * Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents * Microsoft.SqlServer.Dts.Runtime.IDTSLogging * obj -> Microsoft.SqlServer.Dts.Runtime.DTSExecResult
Public Overrides Function Execute (connections As Connections, variableDispenser As VariableDispenser, componentEvents As IDTSComponentEvents, log As IDTSLogging, transaction As Object) As DTSExecResult

Parameters

connections
Connections

A Connections collection through which the task can access connections in the package.

variableDispenser
VariableDispenser

A VariableDispenser object through which the task can access variables in the package.

componentEvents
IDTSComponentEvents

An object, that implements the IDTSComponentEvents interface, through which the task can raise events to the package.

log
IDTSLogging

An object, that implements the IDTSLogging interface, through which the task can write messages to logs defined in the package.

transaction
Object

The transaction object of which the container is a part. This value can be null.

Returns

One of the enumeration values that indicates whether the execution of the task succeeded or failed.

Remarks

For more information about the inherited Execute method, see Execute.

Applies to