DataItem.DataType Property

 

Applies To: SQL Server 2016 Preview

Gets or sets the type of current DataItem.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

[TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")]
[EditorAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeEditor, Microsoft.AnalysisServices.Design", 
    typeof(UITypeEditor))]
public OleDbType DataType { get; set; }
public:
[TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")]
[EditorAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeEditor, Microsoft.AnalysisServices.Design", 
    (UITypeEditor^::typeid))]
property OleDbType DataType {
    OleDbType get();
    void set(OleDbType value);
}
[<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")>]
[<EditorAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeEditor, Microsoft.AnalysisServices.Design",
    typeof(UITypeEditor))>]
member DataType : OleDbType with get, set
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")>
<EditorAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeEditor, Microsoft.AnalysisServices.Design",
    GetType(UITypeEditor))>
Public Property DataType As OleDbType

Property Value

Type: System.Data.OleDb.OleDbType

An OleDbType value with the type of DataItem.

Remarks

Although the OLeDbType enumeration is used, only the following values are valid: WChar, Integer, BigInt, Single, Double, Date, Currency,UnsignedTinyInt, UnsignedSmallInt, UnsignedInt, UnsignedBigInt, Bool, Smallint, Tinyint, Binary. Use of other OLeDbType will cause an error, instead of any implicit conversion to one of the valid types.

See Also

DataItem Class
Microsoft.AnalysisServices Namespace

Return to top