单项选择题
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 OrderService
04 {
05 [OperationContract]
06 public void SubmitOrder(Order anOrder)
07 {
08 try
09 {
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
C. After line 05, add the following line: [FaultContract(typeof(FaultException
D. Alter line 05, add the following line: [FaultContract(typeof(FaultException
相关考题
-
单项选择题
下列关于数字数据网DDN描述不正确的是()。
A.采用数字电路,提供端到端的高质量数据传输。
B.属于快速分组交换技术的一种。
C.比模拟网络具有更高的传输速率和更远的传输距离。
D.比交换型网络具有更高的透明性。 -
单项选择题
某企业2006年发生债务利息50万元(其中费用化的利息为30万,资本化的利息为20万),2007年债务利息与2006年相同,实现净利润120万元,所得税税率为25%。该企业2007年的已获利息倍数为()
A.7.2
B.3.8
C.6.4
D.4.2 -
多项选择题
借款费用的主要内容包括()。
A.借款利息
B.外币借款汇兑差额
C.债券发行费用
D.借款承诺费
E.应付债券溢价或折价的摊销
