DataConnectionCollection.Item property (Int32)
Gets a reference to the specified DataConnection object from the collection by index value.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
After you have set a reference to the DataConnection object that the Item property returns, you can access any of its properties or methods after the object has been cast to the appropriate type for the corresponding data connection. For example, to access the properties and methods of a data connection for submitting a form in e-mail, you must cast the returned DataConnection object to the EmailSubmitConnection type.
Index value of a given data connection is not guaranteed to be the same between versions, or between sessions of opening the same form template in InfoPath and in a Web browser (from an appropriately configured document library on SharePoint Server 2010 running InfoPath Forms Services). To reliably open the same data connection under all conditions, you should open the data connection explicitly by name using the DataConnectionCollection.Item[String] method instead.
This member can be accessed without restrictions.
This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.