DataItem.DataType Property

現在の DataItem の型を取得します。値の設定も可能です。

名前空間: Microsoft.AnalysisServices
アセンブリ: Microsoft.AnalysisServices (microsoft.analysisservices.dll 内)

構文

'宣言
<TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")> _
<EditorAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeEditor, Microsoft.AnalysisServices.Design", GetType(UITypeEditor))> _
Public Property DataType As OleDbType
[TypeConverterAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")] 
[EditorAttribute("Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeEditor, Microsoft.AnalysisServices.Design", typeof(UITypeEditor))] 
public OleDbType DataType { get; set; }
[TypeConverterAttribute(L"Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeConverter, Microsoft.AnalysisServices.Design")] 
[EditorAttribute(L"Microsoft.AnalysisServices.Design.DataItemDataTypePropertyTypeEditor, Microsoft.AnalysisServices.Design", typeof(UITypeEditor))] 
public:
property OleDbType DataType {
    OleDbType get ();
    void set (OleDbType value);
}
/** @property */
public OleDbType get_DataType ()

/** @property */
public void set_DataType (OleDbType value)
public function get DataType () : OleDbType

public function set DataType (value : OleDbType)

プロパティ値

DataItem の型を表す OleDbType 値です。

解説

OLeDbType 列挙が使用されますが、有効な値は WChar、Integer、BigInt、Single、Double、Date、Currency、UnsignedTinyInt、UnsignedSmallInt、UnsignedInt、UnsignedBigInt、Bool、Smallint、Tinyint、Binary だけです。他の OLeDbType を使用すると、いずれかの有効な型に暗黙的に変換されるのではなく、エラーになります。

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

DataItem Class
DataItem Members
Microsoft.AnalysisServices Namespace