IVsDataReader.Close 方法

当实现由选件类,结束 IVsDataReader 实例。

命名空间:  Microsoft.VisualStudio.Data.Services.SupportEntities
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Sub Close
void Close()
void Close()
abstract Close : unit -> unit 
function Close()

备注

当使用者读完数据或不再需要读取数据时,应关闭数据读取器。关闭读取器保证输出参数,如果有,填充。

基于提供程序实现,Close 方法可能等待数据读取器完成返回所有指定的数据在关闭之前。将此方法与 Terminate 方法进行比较。

.NET Framework 安全性

请参见

参考

IVsDataReader 接口

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空间