共用方式為


AdoDotNetDataReader.GetItemType 方法

傳回資料項目或項目的資料型別,在中指定之格式的指定索引處的。

命名空間:  Microsoft.VisualStudio.Data.AdoDotNet
組件:  Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)

語法

'宣告
Public Overrides Function GetItemType ( _
    index As Integer, _
    itemTypeFormat As DataItemTypeFormat _
) As Object
public override Object GetItemType(
    int index,
    DataItemTypeFormat itemTypeFormat
)
public:
virtual Object^ GetItemType(
    int index, 
    DataItemTypeFormat itemTypeFormat
) override
abstract GetItemType : 
        index:int * 
        itemTypeFormat:DataItemTypeFormat -> Object  
override GetItemType : 
        index:int * 
        itemTypeFormat:DataItemTypeFormat -> Object
public override function GetItemType(
    index : int, 
    itemTypeFormat : DataItemTypeFormat
) : Object

參數

  • index
    類型:Int32

    資料項目索引可以傳回資料型別。

傳回值

類型:Object
傳回中項目的資料型別以指定格式的指定索引處的。

例外狀況

例外狀況 條件
ArgumentOutOfRangeException

index 參數是無效的。

備註

使用從 DataItemTypeFormat 列舉型別的值指定格式。

.NET Framework 安全性

請參閱

參考

AdoDotNetDataReader 類別

Microsoft.VisualStudio.Data.AdoDotNet 命名空間