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

적용 대상