ForEachEnumeratorInfo.CreateNew 方法

定义

为任意 ForEach 枚举器创建新的 ForEachEnumeratorHost

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

返回

示例

下面的代码示例为 For Each Item 枚举器创建一个 ForEachEnumeratorHost

注意

若要将以下代码示例与英语以外的区域设置配合使用,请将字符串“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()  

适用于