DataReader.GetItemType 方法
擷取資料標籤項目或項目的資料型別,在中指定之格式的指定索引處的。
命名空間: Microsoft.VisualStudio.Data
組件: Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)
語法
'宣告
Public MustOverride Function GetItemType ( _
index As Integer, _
itemTypeFormat As DataItemTypeFormat _
) As Object
public abstract Object GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
)
public:
virtual Object^ GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
) abstract
abstract GetItemType :
index:int *
itemTypeFormat:DataItemTypeFormat -> Object
public abstract function GetItemType(
index : int,
itemTypeFormat : DataItemTypeFormat
) : Object
參數
- index
型別:System.Int32
資料項目索引可以傳回資料型別。
- itemTypeFormat
型別:Microsoft.VisualStudio.Data.DataItemTypeFormat
的格式傳回資料型別資訊。
傳回值
型別:System.Object
傳回中項目的資料型別以指定格式的指定索引處的。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentOutOfRangeException | index 參數是無效的。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。