DataReader.GetItemType 方法 (Int32, DataItemTypeFormat)
擷取資料項目或項目的資料型別,在指定之格式的指定的索引。
命名空間: 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
類型:Int32資料項目索引可以傳回資料型別。
itemTypeFormat
類型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataItemTypeFormat的格式傳回資料型別資訊。
傳回值
類型:Object
項目的資料型別在指定索引處的所指定格式的資料。
實作
IVsDataReaderDescriptor.GetItemType(Int32, DataItemTypeFormat)
備註
繼承者注意事項
基底實作會擲回 NotSupportedException。 衍生類別應該覆寫這個方法。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。