DtsForEachEnumeratorAttribute.ForEachEnumeratorContact 属性

定义

获取或设置 Foreach 枚举器对象的联系信息。

public:
 property System::String ^ ForEachEnumeratorContact { System::String ^ get(); void set(System::String ^ value); };
public string ForEachEnumeratorContact { get; set; }
member this.ForEachEnumeratorContact : string with get, set
Public Property ForEachEnumeratorContact As String

属性值

Foreach 枚举器对象的联系信息。

示例

下面的代码示例显示了应用于新类的属性,其中定义了多个属性,包括DisplayNameDescriptionForEachEnumeratorContactUITypeName

using System;  
using Microsoft.SqlServer.Dts.Runtime;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
// This attribute marks the class as a managed ForEachEnumerator.  
    [DtsForEachEnumerator(DisplayName = "MyEnumerator",  
      Description="A managed enumerator",  
      UITypeName="<FullyQualifiedTypeName>",  
      ForEachEnumeratorContact="Name of company to contact")]  
    public class MyEnumerator : ForEachEnumerator  
    {  
        // Insert your enumerator code here.  
    }  
}  
Imports System  
Imports Microsoft.SqlServer.Dts.Runtime  

Namespace Microsoft.Samples.SqlServer.Dts  
  ' This attribute marks the class as a managed ForEachEnumerator.  
  <DtsForEachEnumerator(DisplayName:="MyEnumerator", _  
    Description:="A managed enumerator", _  
    UITypeName:="<FullyQualifiedTypeName>", _  
    ForEachEnumeratorContact:="Name of company to contact")> _  
  Public Class MyEnumerator  
    Inherits ForEachEnumerator  
    ' Insert your enumerator code here.  
  End Class  
End Namespace  

注解

此可选属性用于指定枚举器对象的联系信息 Foreach

适用于