Udostępnij przez


Właściwość DataItem.DataType

Pobiera lub ustawia typ bieżącego DataItem.

Przestrzeń nazw:  Microsoft.AnalysisServices
Zestaw:  Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)

Składnia

'Deklaracja
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")> _
Public Property DataType As OleDbType
    Get
    Set
'Użycie
Dim instance As DataItem
Dim value As OleDbType

value = instance.DataType

instance.DataType = value
[TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")]
public OleDbType DataType { get; set; }
[TypeConverterAttribute(L"Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")]
public:
property OleDbType DataType {
    OleDbType get ();
    void set (OleDbType value);
}
[<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")>]
member DataType : OleDbType with get, set
function get DataType () : OleDbType
function set DataType (value : OleDbType)

Wartość właściwości

Typ: System.Data.OleDb.OleDbType
Wartość typu z typem DataItem.

Uwagi

Chociaż wyliczenia typu następujące wartości są prawidłowe: WChar całkowitą BigInt, pojedynczy podwójny daty, waluty, UnsignedTinyInt, UnsignedSmallInt, UnsignedInt, UnsignedBigInt, Bool, Smallint, Tinyint, binarny.Użyj innego typu, spowoduje błąd, zamiast dowolnej niejawna konwersja do jednej z prawidłowych typów.