2004年12月14日

异步文件 I/O

摘要: 异步文件 I/O同步 I/O 意味着在 I/O 操作完成之前,方法被阻塞,I/O 操作完成后,方法返回其数据。使用异步 I/O,用户可以调用 BeginRead 或 BeginWrite。主线程可以继续进行其他工作,稍后,用户将能够处理数据。另外,多个 I/O 请求可以被同时挂起。要在此数据可用时得到通知,您可以调用 EndRead 或 EndWrite,传入与您发出的 I/O 请求对应的 IAsyncResult。您还可以提供回调方法,该回调方法应调用 EndRead 或 EndWrite 以计算出读取或写入了多少字节。当许多 I/O 请求被同时挂起时,异步 I/O 可以提供较好的性能,但通 阅读全文

posted @ 2004-12-14 19:30 老代哥哥 阅读(223) 评论(0) 推荐(0) 编辑

C# 操作DTS

摘要: in the C# class file for your project: using System;using System.Runtime.InteropServices;using DTS;namespace DtsInterop{ //This class loads and executes the DTS package. class ExecPkgWithEvents { /* Prior to running this code, create a DTS package and save it to SQL Server. Then set a reference to . 阅读全文

posted @ 2004-12-14 09:06 老代哥哥 阅读(282) 评论(0) 推荐(0) 编辑

导航