检索数据项的数据类型或项目,请在指定的索引以指定的格式。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public Overridable Function GetItemType ( _
index As Integer, _
itemTypeFormat As DataItemTypeFormat _
) As Object
public virtual Object GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
)
public:
virtual Object^ GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
)
abstract GetItemType :
index:int *
itemTypeFormat:DataItemTypeFormat -> Object
override GetItemType :
index:int *
itemTypeFormat:DataItemTypeFormat -> Object
public function GetItemType(
index : int,
itemTypeFormat : DataItemTypeFormat
) : Object
参数
- index
类型:System.Int32
数据项索引来返回数据类型。
- itemTypeFormat
类型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataItemTypeFormat
的格式返回数据类型的信息。
返回值
类型:System.Object
项的数据类型位于指定索引处的。指定的格式。
实现
IVsDataReaderDescriptor.GetItemType(Int32, DataItemTypeFormat)
备注
对继承者的说明
基实现引发 NotSupportedException。该派生类应重写此方法。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。