Share via


ForEachEnumeratorInfo.CreateNew Method

Creates a new ForEachEnumeratorHost for any ForEach enumerator.

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
Public Function CreateNew As ForEachEnumeratorHost
'Usage
Dim instance As ForEachEnumeratorInfo 
Dim returnValue As ForEachEnumeratorHost 

returnValue = instance.CreateNew()
public ForEachEnumeratorHost CreateNew()
public:
ForEachEnumeratorHost^ CreateNew()
member CreateNew : unit -> ForEachEnumeratorHost
public function CreateNew() : ForEachEnumeratorHost

Return Value

Type: Microsoft.SqlServer.Dts.Runtime.ForEachEnumeratorHost

Examples

The following code example creates a ForEachEnumeratorHost for the For Each Item enumerator.

Note

To use the following code sample with a locale other than English, change the string, "For Each Item Enumerator", to the localized name of the enumerator.

ForEachEnumeratorInfos feInfos = app.ForEachEnumeratorInfos;

//Find the For Each Item Enumerator, and 
//create its host.
ForEachEnumeratorInfo feFileEnum = feInfos["For Each Item Enumerator"];
ForEachEnumeratorHost feHost = feFileEnum.CreateNew();
Dim feInfos As ForEachEnumeratorInfos =  app.ForEachEnumeratorInfos 
 
'Find the For Each Item Enumerator, and 
'create its host.
Dim feFileEnum As ForEachEnumeratorInfo =  feInfos("For Each Item Enumerator") 
Dim feHost As ForEachEnumeratorHost =  feFileEnum.CreateNew()

See Also

Reference

ForEachEnumeratorInfo Class

Microsoft.SqlServer.Dts.Runtime Namespace