ForEachEnumeratorInfo.CreateNew Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new ForEachEnumeratorHost for any ForEach enumerator.
public:
Microsoft::SqlServer::Dts::Runtime::ForEachEnumeratorHost ^ CreateNew();
public Microsoft.SqlServer.Dts.Runtime.ForEachEnumeratorHost CreateNew ();
member this.CreateNew : unit -> Microsoft.SqlServer.Dts.Runtime.ForEachEnumeratorHost
Public Function CreateNew () As ForEachEnumeratorHost
Returns
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()