You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()A. TimeoutExceptionB. FaultExceptionC. DivideByZeroExceptionD. FaultExceptionSalesFault

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()

A. TimeoutException

B. FaultException

C. DivideByZeroException

D. FaultException<SalesFault>


相关考题:

胭脂的英文是Rouge/foundation(blush)() 此题为判断题(对,错)。

下列关于X-Windows体系结构说法正确的是()。 A.X-Server用于管理客户端硬件B.X-Server接受鼠标键盘灯发送的信息C.X-client为X-Server提供数据D.X-Client是应用程序

在Internet上搜索信息时,下列说法不正确的是____。A.windows and client表示检索结果必须同时满足windows和client两个条件B.windows or client表示检索结果只需满足windows和client中一个条件即可C.windows not client表示检索结果中不能含有clientD.windows client表示检索结果中含有windows或client

He's spent years cultivating a knowledge of art.A:sharingB:usingC:denyingD:developing

合格理财师综合素质的标准5Cs代表( )。A.坚持以客户为中心(Client)B.沟通交流能力(Communication)C.协调能力(Coordination)D.专业水平(Competence)E.高尚的职业操守( commitment to ethics )

He's spent years cultivating a knowledge of art.A:usingB:denyingC:sharingD:developing

He's spent years cultivating a knowledge of art.A:denyingB:usingC:sharingD:developing

已知在某Windows应用程序中,主窗体类为Form1,程序入口为静态方法From1.Main。如下所示: public class Form1 : System.Windows.Forms.Form { //其他代码 static void Main() { //在此添加合适代码 } } 则在Main方法中打开主窗体的正确代码是()。A.Application.Open(new Form1());B.Application.Run(new Form1());C.(new Form1()).Open();D.(new Form1()).Run();

在Internet上搜索信息时,下列说法不正确的是 。A.windows and client表示检索结果必须同时满足windows和client两个条件B.windows or client表示检索结果只需满足windows和client中一个条件即可C.windows not client表示检索结果中不能含有clientD.windows client表示检索结果中含有windows或client

92、在Internet上搜索信息时,下列说法不正确的是 。A.windows and client表示检索结果必须同时满足windows和client两个条件B.windows or client表示检索结果只需满足windows和client中一个条件即可C.windows not client表示检索结果中不能含有clientD.windows client表示检索结果中含有windows或client