Share via


ForEachEnumeratorInfo.CreateNew Methode

Definition

Erstellt einen neuen ForEachEnumeratorHost für einen beliebigen 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

Gibt zurück

Beispiele

Im folgenden Codebeispiel wird ein ForEachEnumeratorHost Aufzählungszeichen für jedes Element erstellt.

Hinweis

Wenn Sie das folgende Codebeispiel mit einem anderen Gebietsschema als Englisch verwenden möchten, ändern Sie die Zeichenfolge "For Each Item Enumerator" in den lokalisierten Namen des Enumerators.

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()  

Gilt für: