Compartir a través de


ForEachEnumeratorInfo.CreateNew Method

Creates a new ForEachEnumeratorHost for any ForEach enumerator.

Espacio de nombres: Microsoft.SqlServer.Dts.Runtime
Ensamblado: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Sintaxis

'Declaración
Public Function CreateNew As ForEachEnumeratorHost
public ForEachEnumeratorHost CreateNew ()
public:
ForEachEnumeratorHost^ CreateNew ()
public ForEachEnumeratorHost CreateNew ()
public function CreateNew () : ForEachEnumeratorHost

Ejemplo

The following code example creates a ForEachEnumeratorHost for the For Each Item 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()

Seguridad para subprocesos

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

ForEachEnumeratorInfo Class
ForEachEnumeratorInfo Members
Microsoft.SqlServer.Dts.Runtime Namespace