SetPackageParameters Method
Sets package parameters.

Namespace: SSIS.Test.Dts
Assembly: SSIS.Test (in SSIS.Test.dll) Version: 3.0.0.236 (3.0.0.236)

Syntax

C#
public void SetPackageParameters(
	IEnumerable<KeyValuePair<string, Object>> nameValuePairs
)
Visual Basic
Public Sub SetPackageParameters ( _
	nameValuePairs As IEnumerable(Of KeyValuePair(Of String, Object)) _
)
Visual C++
public:
void SetPackageParameters(
	IEnumerable<KeyValuePair<String^, Object^>>^ nameValuePairs
)

Parameters

nameValuePairs
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'KeyValuePair<(Of <(<'String, Object>)>)>>)>)>
List of name-value pairs where name is a package parameter name and value is a value of that package parameter.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionIf a package parameter is not present in the package, ArgumentException is thrown.

See Also