Aracılığıyla paylaş


DataTypeInfo.TypeEnumName Özelliği

Veri türü sembolik adını döndürür.Bu alan salt okunur durumdadır.

Ad Alanı:  Microsoft.SqlServer.Dts.Runtime
Derleme:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)

Sözdizimi

'Bildirim
Public ReadOnly Property TypeEnumName As String
    Get
'Kullanım
Dim instance As DataTypeInfo
Dim value As String

value = instance.TypeEnumName
public string TypeEnumName { get; }
public:
property String^ TypeEnumName {
    String^ get ();
}
member TypeEnumName : string
function get TypeEnumName () : String

Özellik Değeri

Tür: System.String
Simgesel ad veri türü içeren bir dize.

Açıklamalar

Bu veri türü kısa adını döndürür.Örneğin, bu özellik için bir kayan nokta DT_R4 döndürür.

Örnekler

Aşağıdaki kod örneği, koleksiyon boyunca yineleme ve baskı TypeEnumName ve TypeName her bir veri türü, SQL Server Integration Services (SSIS).

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime;

namespace DataTypeInfo_Properties
{
    class Program
    {
        static void Main(string[] args)
        {
            //Create the DataTypeInfos collection.
            DataTypeInfos dataInfos = new Application().DataTypeInfos;

            //Iterate over the collection, printing the values
            //of the properties.
            foreach (DataTypeInfo dInfo in dataInfos)
            {
                Console.WriteLine("TypeName: {0}, TypeEnumName: {1}", dInfo.TypeName, dInfo.TypeEnumName);
                //Console.WriteLine("TypeEnumName   {0}", dInfo.TypeEnumName);
            }
        }
    }
}
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
 
Namespace DataTypeInfo_Properties
    Class Program
        Shared Sub Main(ByVal args() As String)
            'Create the DataTypeInfos collection.
            Dim dataInfos As DataTypeInfos =  New Application().DataTypeInfos 
 
            'Iterate over the collection, printing the values
            'of the properties.
            Dim dInfo As DataTypeInfo
            For Each dInfo In dataInfos
                Console.WriteLine("TypeName: {0}, TypeEnumName: {1}", dInfo.TypeName, dInfo.TypeEnumName)
                'Console.WriteLine("TypeEnumName   {0}", dInfo.TypeEnumName);
            Next
        End Sub
    End Class
End Namespace

Örnek Çıktı:

TypeName: Float, TypeEnumName: DT_R4

TypeName: çift duyarlıklı kayan nokta, TypeEnumName: DT_R8

TypeName: para birimi, TypeEnumName: DT_CY

TypeName: Tarih, TypeEnumName: DT_DATE

TypeName: Boole, TypeEnumName: DT_BOOL

TypeName: ondalık, TypeEnumName: DT_DECIMAL

TypeName: tek bayt işaretli tamsayı, TypeEnumName: DT_I1

TypeName: tek bayt işaretsiz tamsayı, TypeEnumName: DT_UI1

TypeName: iki bayt işaretli tamsayı, TypeEnumName: DT_I2

TypeName: iki baytlık imzalanmamış tamsayı olarak TypeEnumName: DT_UI2

TypeName: dört bayt işaretli tamsayı, TypeEnumName: DT_I4

TypeName: dört bayt işaretsiz tamsayı, TypeEnumName: DT_UI4

TypeName: sekiz bayt işaretli tamsayı, TypeEnumName: DT_I8

TypeName: sekiz bayt işaretsiz tamsayı, TypeEnumName: DT_UI8

TypeName: dosyanın zaman damgası, TypeEnumName: DT_FILETIME

TypeName: benzersiz tanımlayıcı, TypeEnumName: DT_GUID

TypeName: bayt akışı, TypeEnumName: DT_BYTES

TypeName: dize, TypeEnumName: DT_STR

TypeName: Unicode dize, TypeEnumName: DT_WSTR

TypeName: sayısal, TypeEnumName: DT_NUMERIC

TypeName: Veritabanı tarih, TypeEnumName: DT_DBDATE

TypeName: Veritabanı saat, TypeEnumName: DT_DBTIME

TypeName: Veritabanı zaman damgası, TypeEnumName: DT_DBTIMESTAMP

TypeName: resmi TypeEnumName: DT_IMAGE

TypeName: metin akışı: TypeEnumName: DT_TEXT

TypeName: Unicode metin akışı, TypeEnumName: DT_NTEXT