IDTSFriendlyEnumCollection100 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
包含 IDTSFriendlyEnum100 对象的集合。
public interface class IDTSFriendlyEnumCollection100 : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("F754146D-79CA-4EE5-8024-23C835FB143B")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface IDTSFriendlyEnumCollection100 : System.Collections.IEnumerable
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("0992C731-3097-4570-BB0F-DC53CCFD9D96")]
public interface IDTSFriendlyEnumCollection100 : System.Collections.IEnumerable
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
[System.Runtime.InteropServices.Guid("188AC04F-8D1A-4A1D-9B7F-B0075E5501D7")]
public interface IDTSFriendlyEnumCollection100 : System.Collections.IEnumerable
[<System.Runtime.InteropServices.Guid("F754146D-79CA-4EE5-8024-23C835FB143B")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type IDTSFriendlyEnumCollection100 = interface
interface IEnumerable
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("0992C731-3097-4570-BB0F-DC53CCFD9D96")>]
type IDTSFriendlyEnumCollection100 = interface
interface IEnumerable
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
[<System.Runtime.InteropServices.Guid("188AC04F-8D1A-4A1D-9B7F-B0075E5501D7")>]
type IDTSFriendlyEnumCollection100 = interface
interface IEnumerable
Public Interface IDTSFriendlyEnumCollection100
Implements IEnumerable
- 属性
- 实现
注解
该 IDTSFriendlyEnumCollection100 集合是原生 C++ 组件开发者使用的辅助接口,用于在枚举被指定为对象值 IDTSCustomProperty100 时,为枚举的值提供名称。 IDTSFriendlyEnumCollection100 IDTSFriendlyEnum100在DTS Designer中,和与以下宏结合使用,为枚举值提供友好的名称。
| 宏 | Description |
|---|---|
| BEGIN_FRIENDLY_NAME_ENUM_LIST | 开始友好的名字列举列表。 |
BEGIN_FRIENDLY_NAME_ENUM( EnumerationName, IsFlags) |
启动友好的名字列举列表块。 每个枚举都指定一次。
EnumerationName参数指定枚举名称,IsFlags参数表示枚举中的值是否可以合并进行OR化。 |
FRIENDLY_NAME(Value, NameID) |
为BEGIN_FRIENDLY_NAME_ENUM中指定的枚举中的特定值添加友好名称。
Value参数指定枚举中的项,NameID参数表示枚举值显示的字符串。 |
| END_FRIENDLY_NAME_ENUM | 表示友好枚举结束;每个BEGIN_FRIENDLY_ENUM宏都指定一次。 |
| END_FRIENDLY_ENUM_LIST | 结束友好的列举名单。 |
在使用上述宏定义友好枚举后, TypeConverter 对象的属性 IDTSCustomProperty100 会被赋予BEGIN_FRIENDLY_NAME_ENUM宏中指定的参数值 EnumerationName 。
属性
| 名称 | 说明 |
|---|---|
| Count |
获取集合中包含的 IDTSFriendlyEnumCollection100 元素数量。 |
| IsFlags |
获得一个值,指定 中IDTSFriendlyEnumCollection100对象的值IDTSFriendlyEnum100是否可以组合在一起。 |
| Item[Object] |
得到 IDTSFriendlyEnumCollection100 参数指定的 |
方法
| 名称 | 说明 |
|---|---|
| GetEnumerator() |
返回一个 IEnumerator,可以遍历 IDTSFriendlyEnumCollection100。 |