共用方式為


ParameterBase.DataType 屬性

Gets or sets the data type associated with the parameter.

此 API 不符合 CLS 標準。 

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcReferenceAttribute(GetType(UserDefinedType), GetType(UserDefinedTypeResolver),  _
    "Resolve", )> _
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(UserDefinedDataType), GetType(UserDefinedDataTypeResolver),  _
    "Resolve", )> _
<SfcReferenceAttribute(GetType(UserDefinedTableType), GetType(UserDefinedTableTypeResolver),  _
    "Resolve", )> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.Design)> _
Public Overridable Property DataType As DataType 
    Get 
    Set
'用途
Dim instance As ParameterBase 
Dim value As DataType 

value = instance.DataType

instance.DataType = value
[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
    "Resolve", )]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
    "Resolve", )]
[SfcReferenceAttribute(typeof(UserDefinedTableType), typeof(UserDefinedTableTypeResolver), 
    "Resolve", )]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Design)]
public virtual DataType DataType { get; set; }
[SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
    L"Resolve", )]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
    L"Resolve", )]
[SfcReferenceAttribute(typeof(UserDefinedTableType), typeof(UserDefinedTableTypeResolver), 
    L"Resolve", )]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::Design)]
public:
virtual property DataType^ DataType {
    DataType^ get ();
    void set (DataType^ value);
}
[<SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
    "Resolve", )>]
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
    "Resolve", )>]
[<SfcReferenceAttribute(typeof(UserDefinedTableType), typeof(UserDefinedTableTypeResolver), 
    "Resolve", )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Design)>]
abstract DataType : DataType with get, set
[<SfcReferenceAttribute(typeof(UserDefinedType), typeof(UserDefinedTypeResolver), 
    "Resolve", )>]
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(UserDefinedDataType), typeof(UserDefinedDataTypeResolver), 
    "Resolve", )>]
[<SfcReferenceAttribute(typeof(UserDefinedTableType), typeof(UserDefinedTableTypeResolver), 
    "Resolve", )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.Design)>]
override DataType : DataType with get, set
function get DataType () : DataType 
function set DataType (value : DataType)

屬性值

型別:Microsoft.SqlServer.Management.Smo.DataType
A DataType object value that specifies the data type associated with the parameter.

備註

Thread Safety

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。

範例

設定屬性

建立、改變和移除預存程序

請參閱

參考

ParameterBase 類別

Microsoft.SqlServer.Management.Smo 命名空間