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 fi

题目

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>


相似考题
参考答案和解析
参考答案:B
更多“You are developing a client application that consumes a Windows Communication Foundation ( ”相关问题
  • 第1题:

    合格理财师综合素质的标准5Cs代表( )。

    A.坚持以客户为中心(Client)
    B.沟通交流能力(Communication)
    C.协调能力(Coordination)
    D.专业水平(Competence)
    E.高尚的职业操守( commitment to ethics )

    答案:A,B,C,D,E
    解析:
    国外有人把对合格理财师综合素质要求或标准概括为5个方面,用5Cs代表,即坚持以客户为中心(Client)、沟通交流能力(Communication)、协调能力(Coordination)、专业水平(Competence)和高尚的职业操守(Commitment to Ethics)。

  • 第2题:

    He's spent years cultivating a knowledge of art.

    A:denying
    B:using
    C:sharing
    D:developing

    答案:D
    解析:
    本句意思:他已花费多年培养对艺术的学识。Cultivate“培养”和develop“发展”意思相 近。spend(time)doing sth./in doing sth.“花(时间)做某事”。第2部分:阅读判断

  • 第3题:

    在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D

  • 第4题:

    He's spent years cultivating a knowledge of art.

    A:using
    B:denying
    C:sharing
    D:developing

    答案:D
    解析:
    这句话的意思是:他用了数年的时间学习艺术知识。句中“cultivate”意为“培养”。四个 选项中A项意为“使用”;B项意为“否认”;C项意为“分享”;D项意为“发展,培养”。因此只有 D项最为合适。

  • 第5题:

    已知在某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();


    A

  • 第6题:

    92、在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D