Linguaggio

IDTSFriendlyEnumCollection100 Interfaccia

Definizione

Contiene una raccolta di oggetti 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
Attributi
Implementazioni

Commenti

La IDTSFriendlyEnumCollection100 collezione è un'interfaccia di supporto utilizzata dagli sviluppatori nativi di componenti C++ per esporre i nomi dei valori di un'enumerazione, quando l'enumerazione è specificata come valore di un IDTSCustomProperty100 oggetto. I IDTSFriendlyEnumCollection100 e IDTSFriendlyEnum100 sono usati in combinazione con le seguenti macro per fornire nomi amichevoli ai valori di un'enumerazione nel DTS designer.

Macro Descrizione
BEGIN_FRIENDLY_NAME_ENUM_LIST Inizia la lista amichevole di enumerazione dei nomi.
BEGIN_FRIENDLY_NAME_ENUM( EnumerationName, IsFlags) Inizia un blocco amichevole di enumerazione dei nomi. Questo viene specificato una volta per ogni enumerazione. Il parametro EnumerationName specifica il nome dell'enumerazione e il parametro IsFlags indica se i valori nell'enumerazione possono essere combinati in OR.
FRIENDLY_NAME(Value, NameID) Aggiunge un nome amichevole per un valore specifico nell'enumerazione specificata nella BEGIN_FRIENDLY_NAME_ENUM. Il parametro Value specifica l'elemento nell'enumerazione e il NameID parametro indica la stringa visualizzata per il valore dell'enumerazione.
END_FRIENDLY_NAME_ENUM Indica la fine dell'enumerazione amichevole; specificato una volta per ogni BEGIN_FRIENDLY_ENUM macro.
END_FRIENDLY_ENUM_LIST Termina la lista amichevole dei nomi di enumerazione.

Dopo aver definito un'enumerazione amichevole usando le macro elencate sopra, alla TypeConverter proprietà dell'oggetto IDTSCustomProperty100 viene assegnata il valore del parametro EnumerationName specificato nella macro BEGIN_FRIENDLY_NAME_ENUM.

Proprietà

Nome Descrizione
Count

Ottiene il numero di elementi contenuti in una IDTSFriendlyEnumCollection100 collezione.

IsFlags

Ottiene un valore che specifica se i valori degli IDTSFriendlyEnum100 oggetti in e IDTSFriendlyEnumCollection100 possono essere combinati insieme.

Item[Object]

Ottiene il IDTSFriendlyEnumCollection100 parametro specificato Index .

Metodi

Nome Descrizione
GetEnumerator()

Restituisce un IEnumerator che può iterare attraverso un IDTSFriendlyEnumCollection100.

Si applica a