Del via


GeneralFunctions.GetValueFromReader Method (SqlDataReader, Int32)

Retrieves the value of the indexed field in the reader.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Usage

'Usage
Dim reader As SqlDataReader
Dim index As Integer
Dim returnValue As String

returnValue = GeneralFunctions.GetValueFromReader(reader, index)

Syntax

'Declaration
<DebuggerStepThroughAttribute> _
Public Shared Function GetValueFromReader ( _
    reader As SqlDataReader, _
    index As Integer _
) As String
[DebuggerStepThroughAttribute] 
public static string GetValueFromReader (
    SqlDataReader reader,
    int index
)
[DebuggerStepThroughAttribute] 
public:
static String^ GetValueFromReader (
    SqlDataReader^ reader, 
    int index
)
/** @attribute DebuggerStepThroughAttribute() */ 
public static String GetValueFromReader (
    SqlDataReader reader, 
    int index
)
DebuggerStepThroughAttribute 
public static function GetValueFromReader (
    reader : SqlDataReader, 
    index : int
) : String

Parameters

  • reader
    Specifies the SQL data reader.
  • index
    Specifies the index of the item to fetch.

Return Value

Type: String

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

GeneralFunctions Class
GeneralFunctions Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.