DataType.Int 属性

Gets a data type that specifies the Int definition used in the data type.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Shared ReadOnly Property Int As DataType 
    Get
用法
Dim value As DataType 

value = DataType.Int
public static DataType Int { get; }
public:
static property DataType^ Int {
    DataType^ get ();
}
static member Int : DataType
static function get Int () : DataType

属性值

类型:Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies an Int definition in the data type.

注释

An Int is an integer that is stored in 4 bytes. The maximum value is 2,147,483,647. The minimum value is -2,147,483,648.

示例

Visual Basic

Dim d As DataType
d = New DataType(SqlDataType.Int)

PowerShell

$dt = new-object Microsoft.SqlServer.Management.Smo.DataType([Microsoft.SqlServer.Management.Smo.SqlDataType]::Int)

请参阅

参考

DataType 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

int、bigint、smallint 和 tinyint (Transact-SQL)