DataType 属性
获取或设置为该列分配的数据类型。
此 API 不符合 CLS。
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(UserDefinedDataType), GetType(UserDefinedDataTypeResolver), _
"Resolve", )> _
<SfcReferenceAttribute(GetType(UserDefinedType), GetType(UserDefinedTypeResolver), _
"Resolve", )> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property DataType As DataType
Get
Set
用法
Dim instance As Column
Dim value As DataType
value = instance.DataType
instance.DataType = value
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver),
"Resolve", )]
[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver),
"Resolve", )]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public DataType DataType { get; set; }
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver),
L"Resolve", )]
[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver),
L"Resolve", )]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property DataType^ DataType {
DataType^ get ();
void set (DataType^ value);
}
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver),
"Resolve", )>]
[<SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver),
"Resolve", )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member DataType : DataType with get, set
function get DataType () : DataType
function set DataType (value : DataType)
属性值
类型:Microsoft.SqlServer.Management.Smo. . :: . .DataType
一个指定分配给列的数据类型的 DataType 对象值。