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
    数据项索引来返回数据类型。

返回值

类型:System.Object
返回项目的数据类型在指定的索引以指定的格式。

异常

异常 条件
ArgumentOutOfRangeException

index 参数无效。

.NET Framework 安全性

请参见

参考

DataReader 类

Microsoft.VisualStudio.Data 命名空间

GetItemName