The DataType object represents a Microsoft SQL Server data type.
The following tables list the members exposed by the DataType type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| DataType | Overloaded. Initializes a new instance of the DataType class. | 
顶部
Public Properties
| 名称 | Description | |
|---|---|---|
| .gif) .gif) | BigInt | Gets a data type that specifies the BigInt definition used in the data type. | 
| .gif) .gif) | Bit | Gets a data type that specifies the Bit definition used in the data type. | 
| .gif) .gif) | DateTime | Gets a data type that specifies the DateTime definition used in the data type. | 
| .gif) .gif) | Float | Gets a data type that specifies the Float definition used in the data type. | 
| .gif) .gif) | Image | Gets a data type that specifies the Image definition used in the data type. | 
| .gif) .gif) | Int | Gets a data type that specifies the Int definition used in the data type. | 
| .gif) | MaximumLength | Gets the maximum length of the data type. | 
| .gif) .gif) | Money | Gets a data type that specifies the Money definition used in the data type. | 
| .gif) | Name | Gets the name of the data type. | 
| .gif) .gif) | NText | Gets a data type that specifies the NText definition used in the data type. | 
| .gif) | NumericPrecision | Gets or sets the numeric precision of the data type. | 
| .gif) | NumericScale | Gets or sets the numeric scale of the data type. | 
| .gif) .gif) | NVarCharMax | Gets a data type that specifies the NVarCharMax definition used in the data type. | 
| .gif) .gif) | Real | Gets a data type that specifies the Real definition used in the data type. | 
| .gif) | Schema | Gets or sets the schema of the data type. | 
| .gif) .gif) | SmallDateTime | Gets a data type that specifies the SmallDateTime definition used in the data type. | 
| .gif) .gif) | SmallInt | Gets a data type that specifies the SmallInt definition used in the data type. | 
| .gif) .gif) | SmallMoney | Gets a data type that specifies the SmallMoney definition used in the data type. | 
| .gif) | SqlDataType | Gets a data type that specifies the SqlDataType definition used in the data type. | 
| .gif) .gif) | SysName | Gets a data type that specifies the SysName definition used in the data type. | 
| .gif) .gif) | Text | Gets a data type that specifies the Text definition used in the data type. | 
| .gif) .gif) | Timestamp | Gets a data type that specifies the TimeStamp definition used in the data type. | 
| .gif) .gif) | TinyInt | Gets a data type that specifies the TinyInt definition used in the data type. | 
| .gif) .gif) | UniqueIdentifier | Gets a data type that specifies the UniqueIdentifier definition used in the data type. | 
| .gif) .gif) | VarBinaryMax | Gets a data type that specifies the VarBinaryMax definition used in the data type. | 
| .gif) .gif) | VarCharMax | Gets a data type that specifies the VarCharMax definition used in the data type. | 
| .gif) .gif) | Variant | Gets a data type that specifies the Variant definition used in the data type. | 
| .gif) | XmlDocumentConstraint | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
| .gif) .gif) | Binary | Returns an object that represents the specified type. | 
| .gif) .gif) | Char | Returns an object that represents the specified type. | 
| .gif) .gif) | Decimal | Returns an object that represents the specified type. | 
| .gif) | Equals | Overloaded. (inherited from Object ) | 
| .gif) | GetHashCode | (inherited from Object ) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) .gif) | NChar | Returns an object that represents the specified type. | 
| .gif) .gif) | Numeric | Returns an object that represents the specified type. | 
| .gif) .gif) | NVarChar | Returns an object that represents the specified type. | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | ToString | Overridden. Returns the object in string format. | 
| .gif) .gif) | UserDefinedDataType | Overloaded. Returns an object that represents the specified type. | 
| .gif) .gif) | UserDefinedType | Overloaded. Returns an object that represents the specified type. | 
| .gif) .gif) | VarBinary | Returns an object that represents the specified type. | 
| .gif) .gif) | VarChar | Returns an object that represents the specified type. | 
| .gif) .gif) | Xml | Overloaded. Returns an object that represents the specified type. | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
顶部
请参阅
参考
DataType Class
Microsoft.SqlServer.Management.Smo Namespace