AdoDotNetDataReader.GetItemType Method
Returns the data type of a data item, or items, at the specified index in a specified format.
Namespace: Microsoft.VisualStudio.Data.AdoDotNet
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaración
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
Parameters
- index
Type: System.Int32
Index of the data item for which to return data type.
- itemTypeFormat
Type: Microsoft.VisualStudio.Data.DataItemTypeFormat
The format in which to return the data type information, as enumerated in DataItemTypeFormat.
Return Value
Type: System.Object
Returns the data type of items at the specified index in the specified format.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The index parameter is invalid. |
Remarks
Use a value from the DataItemTypeFormat enumeration to specify format.
.NET Framework Security
- 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.