ScriptTask::Validate Method (Connections^, VariableDispenser^, IDTSComponentEvents^, IDTSLogging^)

 

Verifies that the component is correctly configured.

Namespace:   Microsoft.SqlServer.Dts.Tasks.ScriptTask
Assembly:  Microsoft.SqlServer.ScriptTask (in Microsoft.SqlServer.ScriptTask.dll)

public:
virtual DTSExecResult Validate(
	Connections^ connections,
	VariableDispenser^ variableDispenser,
	IDTSComponentEvents^ events,
	IDTSLogging^ log
) override

Parameters

connections
Type: Microsoft.SqlServer.Dts.Runtime::Connections^

A collection of connections used by the task.

variableDispenser
Type: Microsoft.SqlServer.Dts.Runtime::VariableDispenser^

A VariableDispenser object for locking variables.

events
Type: Microsoft.SqlServer.Dts.Runtime::IDTSComponentEvents^

An object that implements the IDTSComponentEvents interface.

log
Type: Microsoft.SqlServer.Dts.Runtime::IDTSLogging^

An object that implements the IDTSLogging interface.

Return Value

Type: Microsoft.SqlServer.Dts.Runtime::DTSExecResult

A value from the DTSExecResult enumeration.

The Validate method reviews properties and settings for inaccuracies or incorrect settings. The method does not examine data, or connect to data sources to validate connections. However, using the method ensures that required fields are populated and contain appropriate values. The fields that are validated differ depending on the object that is being validated.

Return to top
Show: