Share via


ForEachEnumeratorInfo.CreateNew Metodo

Definizione

Crea un nuovo oggetto 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

Restituisce

Esempio

Nell'esempio di codice seguente viene creato un ForEachEnumeratorHost oggetto per l'enumeratore For Each Item.

Nota

Per usare l'esempio di codice seguente con impostazioni locali diverse dall'inglese, modificare la stringa "For Each Item Enumerator" sul 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