IDataReader.Close IDataReader.Close IDataReader.Close IDataReader.Close Method

定义

关闭 IDataReader 对象。Closes the IDataReader Object.

public:
 void Close();
public void Close ();
abstract member Close : unit -> unit
Public Sub Close ()

注解

Close 使用IDataReader将关联IDbConnection的用于任何其他用途时, 必须显式调用方法。You must explicitly call the Close method when you are through using the IDataReader to use the associated IDbConnection for any other purpose.

适用于