SourceIniFileSection Property
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.
Applies To
DynamicPropertiesTaskAssignment Object |
Syntax
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 |
Data Type
String
Modifiable
Read/write
Prototype (C/C++)
HRESULT SourceIniFileSection(BSTR* pRetVal);
HRESULT SourceIniFileSection(BSTR pRetVal);
Remarks
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.
Example
The following code sets the SourceIniFileSection property:
oAssign.SourceIniFileFileName = "C:\DTS_UE\TestData\DynProp.ini"
oAssign.SourceIniFileSection = "FlatFile"
oAssign.SourceIniFileKey = "Lengths"