ForEachEnumeratorInfo.CreateNew 方法
Creates a new ForEachEnumeratorHost for any ForEach enumerator.
命名空间: 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
返回值
类型:Microsoft.SqlServer.Dts.Runtime.ForEachEnumeratorHost
示例
The following code example creates a ForEachEnumeratorHost for the For Each Item enumerator.
注意 |
---|
To use the following code sample with a locale other than English, change the string, "For Each Item Enumerator", to the localized name of the 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()