The SourceIniFileSection property sets or returns the name of a section within an .ini file that contains the value to which a Data Transformation Services (DTS) package object property will be set by the DynamicPropertiesTask object, when the SourceType property is DTSDynamicPropertiesSourceType_IniFile.
object.SourceIniFileSection [= section]
Part | Description |
---|---|
object | Expression that evaluates to a DynamicPropertiesTaskAssignment object |
section | Name of section within an .ini file containing value to which a package object property will be set |
String
Read/write
HRESULT SourceIniFileSection(BSTR* pRetVal);
HRESULT SourceIniFileSection(BSTR pRetVal);
Do not include the square brackets "[]" that enclose the section name in the .ini file with the section name when setting this property.
The specified section must appear within the .ini file specified by the SourceIniFileFileName property.
The following code sets the SourceIniFileSection property:
oAssign.SourceIniFileFileName = "C:\DTS_UE\TestData\DynProp.ini"
oAssign.SourceIniFileSection = "FlatFile"
oAssign.SourceIniFileKey = "Lengths"