次の方法で共有


CreateNew メソッド

任意の ForEach 列挙子の新しい ForEachEnumeratorHost を作成します。

名前空間:  Microsoft.SqlServer.Dts.Runtime
アセンブリ:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS.dll)

構文

'宣言
Public Function CreateNew As ForEachEnumeratorHost
'使用
Dim instance As ForEachEnumeratorInfo
Dim returnValue As ForEachEnumeratorHost

returnValue = instance.CreateNew()
public ForEachEnumeratorHost CreateNew()
public:
ForEachEnumeratorHost^ CreateNew()
member CreateNew : unit -> ForEachEnumeratorHost 
public function CreateNew() : 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()