单项选择题

A.
B.
C.
D.
<上一题 目录 下一题>
热门 试题

单项选择题
You are creating a Windows Communication Foundation (WCF) service that is implemented as follows.(Line numbers are included for reference only.)01 [ServiceContract]02 [ServiceBehavior(IncludeExceptionDetailsInFaults = true)]03 public class OrderService04 {05 [OperationContract]06 public void SubmitOrder(Order anOrder)07 {08 try09 {10 ...11 }12 catch(DivideByZeroException ex)13 {14 ...15 }16 }17 }You need to ensure that the stack trace details of the exception are not included in the error information sent to the client.What should you do?()A.Replace line 14 with the following line: throw;B.Replace line 14 with the following line: throw new FaultException(anOrder, ex.ToString());C.After line 05, add the following line: [FaultContract(typeof(FaultException))] Replace line 14 with the following line: throw ex;D.Alter line 05, add the following line: [FaultContract(typeof(FaultException))] Replace line 14 with the following line: throw new FaultException(anOrder, Divide by zero exception );
A.(Line
B.)01
C...11
D...15
E.What
F.ToString());
单项选择题
A.1;1B.2;2C.3;3D.4;4
A.1;1
B.2;2
C.3;3
D.4;4
相关试题
  • 关于生长激素的作用,错误的是()。
  • 下面哪一个参数反映了差分放大电路对差模信...
  • 物联网的发展离不开人才的培养,()的设立...
  • A.NA>NB.NA<NBC.NA=NB=0D.NA=NB...
  • 与应激反应有关的激素是()。