다음을 통해 공유


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()

참고 항목

참조

ForEachEnumeratorInfo 클래스

Microsoft.SqlServer.Dts.Runtime 네임스페이스