Linguaggio

ForEachEnumeratorInfo.CreateNew Metodo

Definizione

Ne crea un nuovo ForEachEnumeratorHost per qualsiasi enumeratore Foreach.

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

Valori restituiti

Esempio

Il seguente esempio di codice crea un ForEachEnumeratorHost per l'enumeratore For Each Item (Per ogni elemento).

Note

Per utilizzare il seguente esempio di codice con una località diversa dall'inglese, cambia la stringa "For Each Item Enumerator" con il nome localizzato dell'enumeratore.

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

Si applica a