Condividi tramite


Application.DataTypeInfos Property

Returns a DataTypeInfos collection that contains DataTypeInfo objects. This property is read-only.

Spazio dei nomi: Microsoft.SqlServer.Dts.Runtime
Assembly : Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property DataTypeInfos As DataTypeInfos
public DataTypeInfos DataTypeInfos { get; }
public:
property DataTypeInfos^ DataTypeInfos {
    DataTypeInfos^ get ();
}
/** @property */
public DataTypeInfos get_DataTypeInfos ()
public function get DataTypeInfos () : DataTypeInfos

Valore proprietà

A DataTypeInfos collection that contains DataTypeInfo objects.

Esempio

The following code example shows how to enumerate the available data types.

class ApplicationTests1
    {
        static void Main(string[] args)
        {
            DataTypeInfos dti = new Application().DataTypeInfos;

            foreach (DataTypeInfo x in dti) 
                Console.WriteLine(x.TypeName + " , " + x.TypeEnumName);
        }
    }
class ApplicationTests1
    Sub Main(ByVal args() As String)
        Dim dti As DataTypeInfos =  New Application().DataTypeInfos 
 
        For Each x As DataTypeInfo In dti
            Console.WriteLine(x.TypeName + " , " + x.TypeEnumName)
        Next
    End Sub
End Class

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

Application Class
Application Members
Microsoft.SqlServer.Dts.Runtime Namespace