IDataReader.Close 方法

定义

关闭 IDataReader 对象。Closes the IDataReader Object.

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

注解

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

适用于