DataReader.GetItemType Method (Int32, DataItemTypeFormat)
Retrieves the data type of a data item, or items, at the specified index in a specified format.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Overridable Function GetItemType ( _
index As Integer, _
itemTypeFormat As DataItemTypeFormat _
) As Object
'使用
Dim instance As DataReader
Dim index As Integer
Dim itemTypeFormat As DataItemTypeFormat
Dim returnValue As Object
returnValue = instance.GetItemType(index, _
itemTypeFormat)
public virtual Object GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
)
public:
virtual Object^ GetItemType(
int index,
DataItemTypeFormat itemTypeFormat
)
public function GetItemType(
index : int,
itemTypeFormat : DataItemTypeFormat
) : Object
Parameters
index
Type: System.Int32Index of the data item for which to return a data type.
itemTypeFormat
Type: Microsoft.VisualStudio.Data.Services.SupportEntities.DataItemTypeFormatThe format in which to return the data type information.
Return Value
Type: System.Object
The data type of items at the specified index in the specified format.
Implements
IVsDataReaderDescriptor.GetItemType(Int32, DataItemTypeFormat)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.