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>
第1题:
第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
第4题:
第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();
第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