TracingDataReader.Close Method
[This is internal Microsoft documentation - Do not distribute.]
Closes the TracingDataReader object.
Namespace: Microsoft.Webstore.Common
Assembly: ICL (in icl.dll)
Syntax
'Declaration
Public Sub Close
public void Close ()
Remarks
You must explicitly call the Close method when you are through using the SqlDataReader to use the associated SqlConnection for any other purpose. The Close method fills in the values for output parameters, return values and RecordsAffected, increasing the amount of time it takes to close a SqlDataReader that was used to process a large or complicated query. In cases where the return values and the number of records affected by a query are not significant, the amount of time it takes to close the SqlDataReader can be reduced by calling the Cancel method of the associated SqlCommand object before calling the Close method.
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
TracingDataReader Class
TracingDataReader Members
Microsoft.Webstore.Common Namespace