题目内容

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(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");

查看答案
更多问题

根据《高层民用建筑设计防火规范》(GB50045-2005)规定,应设置独立的机械加压送风的防烟设施的部分不包括()

A. 不具备自然排烟条件的防烟楼梯间、消防电梯间前室或合用前室
B. 采用自然排烟措施的防烟楼梯间,其不具备自然排烟条件的前室
C. 封闭避难层(间)
D. 无直接自然通风的内走道

化脓性脑膜炎[病例摘要]男性,4个月,反复发热伴呕吐13天患儿于13天前无明显原因发热达39℃,伴轻咳,曾呕吐数次,吐出胃内容物,非喷射性,无惊厥,曾验血WBC14×109/L,中性81%,住院按"上感"治疗好转出院,但于2天前又发热达39℃以上,伴哭闹,易激惹,呕吐2次,以"发热呕吐"待查收入院。病后患儿精神尚可,近2天来精神萎靡,二便正常,吃奶稍差。既往体健,第1胎第1产,足月自然分娩,生后母乳喂养。查体:T38.4℃,P140次/分,R44次/分,Bp80/65mmHg,体重7.8kg,身长66cm,头围41.5cm,神清,精神差,易激惹,前囟0.8cm2,张力稍高,眼神欠灵活,巩膜无黄染,双瞳孔等大等圆,对光反射存在,颈项稍有抵抗,心率140次/分,律齐,肺及腹部无异常,克氏征(+),巴氏征(-)化验:血Hb:112g/L,WBC:29.6×109/L,分叶77%,淋巴20%,单核3%,plt:150×109/L,大便常规(-),腰穿:滴速62滴/分,血性微混浊,常规:细胞总数:5760×106/L,白细胞数:360×106/L,多形核:86%,生化:糖:2.5mmol/L,蛋白:1.3g/L,氯化物:110mmol/L。

因信称义

会员制经营模式的特点

答案查题题库