AdoDotNetReader.GetItemType 方法 (Int32, DataItemTypeFormat)
擷取資料項目或項目的資料型別,在中指定之格式的指定索引處的。
命名空間: Microsoft.VisualStudio.Data.Framework.AdoDotNet
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Overrides Function GetItemType ( _
index As Integer, _
itemTypeFormat As DataItemTypeFormat _
) As Object
public override Object GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
)
public:
virtual Object^ GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
) override
abstract GetItemType :
index:int *
itemTypeFormat:DataItemTypeFormat -> Object
override GetItemType :
index:int *
itemTypeFormat:DataItemTypeFormat -> Object
public override function GetItemType(
index : int,
itemTypeFormat : DataItemTypeFormat
) : Object
參數
- index
型別:System.Int32
資料項目索引可以傳回資料型別。
- itemTypeFormat
型別:Microsoft.VisualStudio.Data.Services.SupportEntities.DataItemTypeFormat
的格式傳回資料型別資訊的,例如被列舉在 DataItemTypeFormat。
傳回值
型別:System.Object
項目或項目的資料型別是在指定的索引所指定格式的資料。
實作
IVsDataReaderDescriptor.GetItemType(Int32, DataItemTypeFormat)
備註
如果指定的資料型別格式無法辨識為原生型別或 Managed 型別,這個方法會擲回例外狀況。 NotSupportedException
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。