共用方式為


DataType 成員

The DataType object represents a SQL Server data type.

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.

頂端

方法

  名稱 描述
公用方法靜態成員 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) (覆寫 Object. . :: . .Equals(Object)。)
公用方法 Equals(DataType)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (覆寫 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 8 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.

頂端

屬性

  名稱 描述
公用屬性靜態成員 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 datatype 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 NVarCharMax definition used in the data type.
公用屬性靜態成員 Real Gets a data type that specifies the Real 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.

頂端