Compartir a través de


DataItem.DataType Propiedad

Gets or sets the type of current DataItem.

Espacio de nombres:  Microsoft.AnalysisServices
Ensamblado:  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Sintaxis

'Declaración
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")> _
Public Property DataType As OleDbType 
    Get 
    Set
'Uso
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)

Valor de la propiedad

Tipo: System.Data.OleDb.OleDbType
An OleDbType value with the type of DataItem.

Comentarios

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.

Vea también

Referencia

DataItem Clase

Espacio de nombres Microsoft.AnalysisServices