ForEachEnumeratorInfo.CreateNew Method
Creates a new ForEachEnumeratorHost for any ForEach enumerator.
Spazio dei nomi: Microsoft.SqlServer.Dts.Runtime
Assembly : Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
Sintassi
'Dichiarazione
Public Function CreateNew As ForEachEnumeratorHost
public ForEachEnumeratorHost CreateNew ()
public:
ForEachEnumeratorHost^ CreateNew ()
public ForEachEnumeratorHost CreateNew ()
public function CreateNew () : ForEachEnumeratorHost
Esempio
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()
Thread Safety
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.
Piattaforme
Piattaforme di sviluppo
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Piattaforme di destinazione
Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.
Vedere anche
Riferimento
ForEachEnumeratorInfo Class
ForEachEnumeratorInfo Members
Microsoft.SqlServer.Dts.Runtime Namespace