DataTypeInfo.TypeEnumName 속성

정의

데이터 형식의 심볼 이름을 반환합니다. 이 필드는 읽기 전용입니다.

public:
 property System::String ^ TypeEnumName { System::String ^ get(); };
public string TypeEnumName { get; }
member this.TypeEnumName : string
Public ReadOnly Property TypeEnumName As String

속성 값

데이터 형식의 심볼 이름이 포함된 문자열입니다.

예제

다음 코드 예제에서는 컬렉션을 반복하고 SSIS(SQL Server Integration ServicesTypeEnumName)의 각 데이터 형식과 TypeName 각 데이터 형식을 인쇄합니다.

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  

샘플 출력:

TypeName: float, TypeEnumName: DT_R4

TypeName: 배정밀도 float, TypeEnumName: DT_R8

TypeName: currency, TypeEnumName: DT_CY

TypeName: date, TypeEnumName: DT_DATE

TypeName: Boolean, TypeEnumName: DT_BOOL

TypeName: decimal, TypeEnumName: DT_DECIMAL

TypeName: single-byte 부호 있는 정수, TypeEnumName: DT_I1

TypeName: Single-byte 부호 없는 정수, TypeEnumName: DT_UI1

TypeName: 부호 있는 2바이트 정수, TypeEnumName: DT_I2

TypeName: 2바이트 부호 없는 정수, TypeEnumName: DT_UI2

TypeName: 4바이트 부호 있는 정수, TypeEnumName: DT_I4

TypeName: 4바이트 부호 없는 정수, TypeEnumName: DT_UI4

TypeName: 8바이트 부호 있는 정수, TypeEnumName: DT_I8

TypeName: 8바이트 부호 없는 정수, TypeEnumName: DT_UI8

TypeName: 파일 타임스탬프, TypeEnumName: DT_FILETIME

TypeName: 고유 식별자, TypeEnumName: DT_GUID

TypeName: 바이트 스트림, TypeEnumName: DT_BYTES

TypeName: string, TypeEnumName: DT_STR

TypeName: 유니코드 문자열, TypeEnumName: DT_WSTR

TypeName: numeric, TypeEnumName: DT_NUMERIC

TypeName: 데이터베이스 날짜, TypeEnumName: DT_DBDATE

TypeName: 데이터베이스 시간, TypeEnumName: DT_DBTIME

TypeName: 데이터베이스 타임스탬프, TypeEnumName: DT_DBTIMESTAMP

TypeName: image, TypeEnumName: DT_IMAGE

TypeName: 텍스트 스트림, TypeEnumName: DT_TEXT

TypeName: 유니코드 텍스트 스트림, TypeEnumName: DT_NTEXT

설명

그러면 데이터 형식의 짧은 이름이 반환됩니다. 예를 들어 이 속성은 float에 대한 DT_R4 반환합니다.

적용 대상