Share via


WstDataReader.Read Method

[This is internal Microsoft documentation - Do not distribute.]

Advances the SqlDataReader to the next record.

Namespace: Microsoft.Webstore.WstClient
Assembly: ICL (in icl.dll)

Syntax

'Declaration

  Public Function Read As Boolean
  public bool Read ()

Return Value

true if there are more rows; otherwise, false

Remarks

The default position of the SqlDataReader is prior to the first record. Therefore, you must call Read to begin accessing any data. Only one SqlDataReader per associated SqlConnection may be open at a time, and any attempt to open another will fail until the first one is closed. Similarly, while the SqlDataReader is in use, the associated SqlConnection is busy serving it until you call Close.

Thread Safety

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

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

WstDataReader Class
WstDataReader Members
Microsoft.Webstore.WstClient Namespace