当前位置:MCTS(70-528)题库

问题:

[单选] 你有一个需要大约执行一分钟的 SQL 查询。为此,你使用如下的代码段异步执行这个查询:IAsyncResult ar = cmd.BeginExecuteReader()。当上面SQL查询在执行的过程中,你需要同时执行一个方法Do Work(),这个方法大约需要1秒钟的执行时间。而且在SQL 查询执行的过程中需要尽可能的多次执行Do Work()方法,你应该使用下面那个代码段?()

A . while (ar.AsyncWaitHandle == null) { DoWork();}dr = cmd.EndExecuteReader(ar);
B . while (!ar.IsCompleted) { DoWork();}dr = cmd.EndExecuteReader(ar);
C . while (Thread.CurrentThread.ThreadState == ThreadState.Running) { Do Work();}dr =cmd.EndExecuteReader(ar);
D . while (!ar.AsyncWaitHandle.WaitOne()) { DoWork();}dr = cmd.EndExecuteReader(ar)

应用研究 《移动式压力容器安全技术监察规程》规定,充装冷冻液化气体,介质为易燃、易爆的真空绝热罐体,任何情况下的最大充满率不得大于() 85%。 90%。 95%。 98%。 You need to ensure that domain controllers only replicate between domain controllers in adjacent  sites.   What should you configure from Active Directory Sites and Services() From the IP properties, select Ignore all schedules.。 From the IP properties, select Disable site link bridging.。 From the NTDS Settings object, manually configure the Active Directory Domain Services connection  objects.。 From the properties of the NTDS Site Settings object, configure the Inter-Site Topology Generator for  each site.。 下列关于CSS样式的边框设置说法正确的是() 只能是实线。 四边边框的颜色必须相同。 四边边框的宽度必须相同。 无论线形、宽度、颜色四边都可以不同。 国家安全生产监管(监察)机构的职权主要有() 现场调查取证权。 人员拘留权。 现场处理权。 查封、扣押行政强制措施权。 人员裁决权。 你有一个需要大约执行一分钟的 SQL 查询。为此,你使用如下的代码段异步执行这个查询:IAsyncResult ar = cmd.BeginExecuteReader()。当上面SQL查询在执行的过程中,你需要同时执行一个方法Do Work(),这个方法大约需要1秒钟的执行时间。而且在SQL 查询执行的过程中需要尽可能的多次执行Do Work()方法,你应该使用下面那个代码段?()
参考答案:

  参考解析

本题暂无解析

在线 客服