共用方式為


IDTSFriendlyEnumCollection100 Interface

Definition

Contains a collection of IDTSFriendlyEnum100 objects.

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
Attributes
Implements

Remarks

The IDTSFriendlyEnumCollection100 collection is a helper interface used by native C++ component developers to expose names for the values of an enumeration, when the enumeration is specified as the value of an IDTSCustomProperty100 object. The IDTSFriendlyEnumCollection100 and IDTSFriendlyEnum100 are used in combination with the following macros to provide friendly names for the values of an enumeration in DTS designer.

Macro Description
BEGIN_FRIENDLY_NAME_ENUM_LIST Starts the friendly name enumeration list.
BEGIN_FRIENDLY_NAME_ENUM( EnumerationName, IsFlags) Starts a friendly name enumeration list block. This is specified once for each enumeration. The EnumerationName parameter specifies the name of the enumeration and the IsFlags parameter specifies whether the values in the enumeration can be ORed together.
FRIENDLY_NAME(Value, NameID) Adds a friendly name for a specific value in the enumeration specified in the BEGIN_FRIENDLY_NAME_ENUM. The Value parameter specifies the item in the enumeration and the NameID parameter specifies the string that is displayed for the enumeration value.
END_FRIENDLY_NAME_ENUM Indicates the end of the friendly enumeration; specified once for each BEGIN_FRIENDLY_ENUM macro.
END_FRIENDLY_ENUM_LIST End the friendly enumeration name list.

After defining a friendly enumeration using the macros listed above, the TypeConverter property of the IDTSCustomProperty100 object is assigned the value of the EnumerationName parameter specified in the BEGIN_FRIENDLY_NAME_ENUM macro.

Properties

Count

Gets the number of elements contained in an IDTSFriendlyEnumCollection100 collection.

IsFlags

Gets a value that specifies whether the values of the IDTSFriendlyEnum100 objects in an IDTSFriendlyEnumCollection100 can be combined together.

Item[Object]

Gets the IDTSFriendlyEnumCollection100 specified by the Index parameter.

Methods

GetEnumerator()

Returns an IEnumerator that can iterate through an IDTSFriendlyEnumCollection100.

Applies to