DataType 클래스

The DataType object represents a SQL Server data type.

상속 계층

System.Object
  Microsoft.SqlServer.Management.Smo.DataType

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Class DataType _
    Implements IXmlSerializable
‘사용 방법
Dim instance As DataType
public class DataType : IXmlSerializable
public ref class DataType : IXmlSerializable
type DataType =  
    class 
        interface IXmlSerializable 
    end
public class DataType implements IXmlSerializable

DataType 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 DataType() Initializes a new instance of the DataType class.
공용 메서드 DataType(SqlDataType) Initializes a new instance of the DataType class based on a specified SQL Server data type.
공용 메서드 DataType(UserDefinedDataType) Initializes a new instance of the DataType class based on a specified user-defined data type.
공용 메서드 DataType(UserDefinedTableType) Initializes a new instance of the DataType class based on a specified user-defined table type.
공용 메서드 DataType(UserDefinedType) Initializes a new instance of the DataType class based on a specified user-defined type.
공용 메서드 DataType(XmlSchemaCollection) Initializes a new instance of the DataType class based on a specified XML schema collection.
공용 메서드 DataType(SqlDataType, Int32) Initializes a new instance of the DataType class based on a specified SQL Server data type with specified precision or maximum length.
공용 메서드 DataType(SqlDataType, String) Initializes a new instance of the DataType class based on a specified SQL Server data type with the specified type.
공용 메서드 DataType(SqlDataType, Int32, Int32) Initializes a new instance of the DataType class based on a specified SQL Server data type with the specified precision and scale.
공용 메서드 DataType(SqlDataType, String, String) Initializes a new instance of the DataType class based on a specified SQL Server data type with the specified type and schema.

맨 위로 이동

속성

  이름 설명
공용 속성정적 멤버 BigInt Gets a data type that specifies the BigInt definition used in the data type.
공용 속성정적 멤버 Bit Gets a data type that specifies the Bit definition used in the data type.
공용 속성정적 멤버 Date The Date property returns a Date data type.
공용 속성정적 멤버 DateTime Gets a data type that specifies the DateTime definition used in the data type.
공용 속성정적 멤버 Float Gets a data type that specifies the Float definition used in the data type.
공용 속성정적 멤버 Geography The geography data type represents data in a round-earth coordinate system. The SQL Server geography data type stores ellipsoidal (round-earth) data, such as GPS latitude and longitude coordinates.
공용 속성정적 멤버 Geometry The Geometry property contains spatial data that represents information about the physical location and shape of geometric objects.
공용 속성정적 멤버 HierarchyId The HierarchyId property is used to identify a position in a hierarchy.
공용 속성정적 멤버 Image Gets a data type that specifies the Image definition used in the data type.
공용 속성정적 멤버 Int Gets a data type that specifies the Int definition used in the data type.
공용 속성 MaximumLength Gets the maximum length of the data type.
공용 속성정적 멤버 Money Gets a data type that specifies the Money definition used in the data type.
공용 속성 Name Gets the name of the data type.
공용 속성정적 멤버 NText Gets a data type that specifies the NText definition used in the data type.
공용 속성 NumericPrecision Gets or sets the numeric precision of the data type.
공용 속성 NumericScale Gets or sets the numeric scale of the data type.
공용 속성정적 멤버 NVarCharMax Gets a data type that specifies the VarCharMax definition used in the data type.
공용 속성정적 멤버 Real Gets a data type that specifies the Money definition used in the data type.
공용 속성 Schema Gets or sets the schema of the data type.
공용 속성정적 멤버 SmallDateTime Gets a data type that specifies the SmallDateTime definition used in the data type.
공용 속성정적 멤버 SmallInt Gets a data type that specifies the SmallInt definition used in the data type.
공용 속성정적 멤버 SmallMoney Gets a data type that specifies the SmallMoney definition used in the data type.
공용 속성 SqlDataType Gets a data type that specifies the SqlDataType definition used in the data type.
공용 속성정적 멤버 SysName Gets a data type that specifies the SysName definition used in the data type.
공용 속성정적 멤버 Text Gets a data type that specifies the Text definition used in the data type.
공용 속성정적 멤버 Timestamp Gets a data type that specifies the TimeStamp definition used in the data type.
공용 속성정적 멤버 TinyInt Gets a data type that specifies the TinyInt definition used in the data type.
공용 속성정적 멤버 UniqueIdentifier Gets a data type that specifies the UniqueIdentifier definition used in the data type.
공용 속성정적 멤버 VarBinaryMax Gets a data type that specifies the VarBinaryMax definition used in the data type.
공용 속성정적 멤버 VarCharMax Gets a data type that specifies the VarCharMax definition used in the data type.
공용 속성정적 멤버 Variant Gets a data type that specifies the Variant definition used in the data type.
공용 속성 XmlDocumentConstraint Gets or sets a value that indicates how an XML document is formatted.

맨 위로 이동

메서드

  이름 설명
공용 메서드정적 멤버 Binary Returns an object that represents the specified type.
공용 메서드정적 멤버 Char Returns an object that represents the specified type.
공용 메서드정적 멤버 DateTime2 datetime2 is an extension of the existing datetime type. It has a large date range and large default fractional precision. It has a length of at least 19 positions.
공용 메서드정적 멤버 DateTimeOffset Returns values for year, month, day, valid time of day between 00:00:00 and 23:59:59:9999999 and offset, in hours, from UTC. It has a length of at least 25 positions.
공용 메서드정적 멤버 Decimal Returns an object that represents the specified type.
공용 메서드 Equals(Object) Determines whether the specified object is considered equal to the current data type. (Object.Equals(Object)을(를) 재정의함)
공용 메서드 Equals(DataType) Determines whether the specified data types are considered equal.
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetHashCode This method supports the SQL Server infrastructure and is not intended to be used directly from your code. (Object.GetHashCode()을(를) 재정의함)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드정적 멤버 NChar Returns an object that represents the specified type.
공용 메서드정적 멤버 Numeric Returns an object that represents the specified type.
공용 메서드정적 멤버 NVarChar Returns an object that represents the specified type.
공용 메서드정적 멤버 Time Returns values for any valid time of day between 00:00:00 and 23:59:59:9999999. It has a length of at least eight positions and contains the time in hours, minutes, seconds and fractional seconds.
공용 메서드 ToString Returns the object in string format. (Object.ToString()을(를) 재정의함)
공용 메서드정적 멤버 UserDefinedDataType(String) Returns an object that represents the specified type.
공용 메서드정적 멤버 UserDefinedDataType(String, String) Returns an object that represents the specified type with the specified schema.
공용 메서드정적 멤버 UserDefinedTableType(String) Returns an object that represents the specified type.
공용 메서드정적 멤버 UserDefinedTableType(String, String) Returns an object that represents the specified type with the specified schema.
공용 메서드정적 멤버 UserDefinedType(String) Returns an object that represents the specified type.
공용 메서드정적 멤버 UserDefinedType(String, String) Returns an object that represents the specified type with the specified schema.
공용 메서드정적 멤버 VarBinary Returns an object that represents the specified type.
공용 메서드정적 멤버 VarChar Returns an object that represents the specified type.
공용 메서드정적 멤버 Xml(String) Returns an object that represents the specified type.
공용 메서드정적 멤버 Xml(String, String) Returns an object that represents the specified type and with the specified schema.
공용 메서드정적 멤버 Xml(String, String, XmlDocumentConstraint) Returns an object that represents the specified type, schema and XML document constraint.

맨 위로 이동

명시적 인터페이스 구현

  이름 설명
명시적 인터페이스 구현전용 메서드 IXmlSerializable.GetSchema Not implemented.
명시적 인터페이스 구현전용 메서드 IXmlSerializable.ReadXml Deserializes the DAC type properties from an XML stream. 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다..
명시적 인터페이스 구현전용 메서드 IXmlSerializable.WriteXml Serializes the data type properties to an XML stream. 정보를 제공하기 위해서만 확인됩니다. 지원되지 않습니다. 향후 호환성은 보장되지 않습니다..

맨 위로 이동

주의

The DataType object is used to specify the type of data that is associated primarily with columns and parameters.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

데이터 형식 사용

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

Microsoft.SqlServer.Management.Smo 네임스페이스