ForEachEnumeratorInfo.CreateNew Method
Creates a new ForEachEnumeratorHost for any ForEach enumerator.
Пространство имен: Microsoft.SqlServer.Dts.Runtime
Сборка: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
Синтаксис
'Декларация
Public Function CreateNew As ForEachEnumeratorHost
public ForEachEnumeratorHost CreateNew ()
public:
ForEachEnumeratorHost^ CreateNew ()
public ForEachEnumeratorHost CreateNew ()
public function CreateNew () : ForEachEnumeratorHost
Пример
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()
Синхронизация потоков
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.
Платформы
Платформы разработки
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
Целевые платформы
Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.
См. также
Справочник
ForEachEnumeratorInfo Class
ForEachEnumeratorInfo Members
Microsoft.SqlServer.Dts.Runtime Namespace