Share via


DataConnectionCollection.GetEnumerator Method

Gets an IEnumerator object that iterates over all entries in the collection.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
'Usage

Return Value

A IEnumerator.

Remarks

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 an e-mail connection, you must cast the returned DataConnection object to the EmailSubmitConnection type.

This member can be accessed without restrictions.

This type or member can be accessed from code running in forms opened in Microsoft Office InfoPath 2007 or in a Web browser.

See Also

Reference

DataConnectionCollection Class
DataConnectionCollection Members
Microsoft.Office.InfoPath Namespace