检索数据项项的数据类型或项目,在指定的索引以指定的格式。
命名空间: 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。