次の方法で共有


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
Public MustOverride Function GetEnumerator As IEnumerator
'Usage
Dim instance As DataConnectionCollection
Dim returnValue As IEnumerator

returnValue = instance.GetEnumerator()
public abstract IEnumerator GetEnumerator()

Return Value

Type: System.Collections.IEnumerator
A IEnumerator.

Implements

IEnumerable.GetEnumerator()

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 InfoPath Filler or in a Web browser.

See Also

Reference

DataConnectionCollection Class

DataConnectionCollection Members

Microsoft.Office.InfoPath Namespace