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

问题:

[单选]

A Windows Communication Foundation (WCF) service implements the following contract.(Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IDataAccessService
03 {
04 [OperationContract]
05 void PutMessage(string message);
06 ...
07 [OperationContract]
08 [FaultContract(typeof(TimeoutFaultException))]
09 [FaultContract(typeof(FaultException))]
10 string SearchMessages(string search);
11 }
The implementation of the SearchMessages method throws TimeoutFaultException exceptions for database timeouts.The implementation of the SearchMessages method also throws an Exception for any other issue it encounters while processing the request.These exceptions are received on the client side as generic FaultException exceptions. You need to implement the error handling code for SearchMessages and create a new channel on the client only if the channel faults.What should you do?()

A . Catch and handle both TimeoutFaultException and FaultException.
B . Catch both TimeoutFaultException and FaultException. Create a new channel in both cases.
C . Catch and handle TimeoutFaultException. Catch FaultException and create a new channel.
D . Catch and handle FaultException. Catch TimeoutFaultException and create a new channel.

西方文学理论思想的集大成者是() 亚里士多德。 贺拉斯。 黑格尔。 别林斯基。 逐步建立起科技信用制度,完善国家科技计划管理,可以()。 提高国家科技计划管理水平。 提高科技资源分配的公正性和有效性。 简化科技计划管理。 降低管理总成本。 Access是一种()数据库管理系统。 You work as an application developer at Certkiller .com. You have recently created a custom collection class named ShoppingList for a local supermarket. This custom class will include ShoppinItem objects that have the public properties listed below. * Name * AisleNumber * OnDiscount You are required to enable users of your class to iterate through the ShoppingList collection, and to list each product name and aisle number using the foreach statement.You need to achieve this by declaring the appropriate code.What code should you use?()  public class ShoppingList : ICollection {// Class implementation }。  public class ShoppingList : IEnumerator, IEnumerable {// Class implementation }。  public class ShoppingList : Ilist {// Class implementation }。  public class ShoppingList : Enum {// Class implementation }。 许多文学理论专家没能写出好的文学作品,这说明文学理论不能指导文学创作。

A Windows Communication Foundation (WCF) service implements the following contract.(Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IDataAccessService
03 {
04 [OperationContract]
05 void PutMessage(string message);
06 ...
07 [OperationContract]
08 [FaultContract(typeof(TimeoutFaultException))]
09 [FaultContract(typeof(FaultException))]
10 string SearchMessages(string search);
11 }
The implementation of the SearchMessages method throws TimeoutFaultException exceptions for database timeouts.The implementation of the SearchMessages method also throws an Exception for any other issue it encounters while processing the request.These exceptions are received on the client side as generic FaultException exceptions. You need to implement the error handling code for SearchMessages and create a new channel on the client only if the channel faults.What should you do?()

参考答案:

  参考解析

本题暂无解析

在线 客服