DataReader.GetItem Method (String)

Retrieves the value of a data item with the specified name in the current block of data.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Public MustOverride Function GetItem ( _
    name As String _
) As Object
'使用
Dim instance As DataReader
Dim name As String
Dim returnValue As Object

returnValue = instance.GetItem(name)
public abstract Object GetItem(
    string name
)
public:
virtual Object^ GetItem(
    String^ name
) abstract
public abstract function GetItem(
    name : String
) : Object

Parameters

  • name
    Type: System.String

    The name of the data item in the current block to retrieve.

Return Value

Type: System.Object

Returns the string value of the item with the specified name.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The name parameter is invalid.

Permissions

See Also

Reference

DataReader Class

DataReader Members

GetItem Overload

Microsoft.VisualStudio.Data Namespace

GetItem