A Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a SerializationException if any of the data members are not present when a serialized instance of the data contract is deserialized.What should you do?()A. Add the KnownType attribute to the data contract. Set a default value in each of the data member declarations.B. Add the KnownType attribute to the data contract. Set the Order property of each data member to unique integer value.C. Set the EmitDefaultValue property of each data member to false.D. Set the lsRequired property of each data member to true.

A Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a SerializationException if any of the data members are not present when a serialized instance of the data contract is deserialized.What should you do?()

A. Add the KnownType attribute to the data contract. Set a default value in each of the data member declarations.

B. Add the KnownType attribute to the data contract. Set the Order property of each data member to unique integer value.

C. Set the EmitDefaultValue property of each data member to false.

D. Set the lsRequired property of each data member to true.


相关考题:

[A] alternate [B] different [C] varied [D] several

You are consuming a Windows Communication Foundation (WCF) service in an ASP. NET Web application.The service interface is defined as follows:[ServiceContract]public interface ICatalog{ [OperationContract] [WebGet(UriTemplate="/Catalog/Items/{id}", ResponseFormat=WebMessageFormat.Json)] string RetrieveItemDescription(int id); } The service is hosted at Catalogsvc.You need to call the service using jQuery to retrieve the description of an item as indicated by a variable named itemId. Which code segment should you use?()A. $get(String.format(/Catalogsvc/Catalog/Items/id{0}, itemId) null, function (data) { ... }, javascript);B. $get(String.format(/Catalogsvc/Catalog/Items/{0}, itemId), null, function (data) { ... }, json);C. $get(String.format(/Catalogsvc/Catalog/Items/{0}, itemld), null, function (data) { ... }, xml);D. $get(String.format(/Catalogsvc/Catalog/Items/id{0}, itemld), null, function (data) { ... }, json);

在播放视屏时,需要保持屏幕一直亮着,需要哪个权限?() A.uses-permission android:name="android.permission.INTERNET"/B.uses-permission android:name="android.permission.WAKE_LOCK"/C.uses-permission android:name="android.permission.SCREEN_LOCK"/D.uses-permission android:name="android.permission.DIM_LOCK"/

Onthedevelopmentdatabaserac0,therearesixrawdevices:/dev/raw/raw1through/dev/raw/raw6./dev/raw/raw1and/dev/raw/raw2are8GBeach,andtherestare6GBeach.Anexistingdiskgroup+DATA1,ofNORMALREDUNDANCY,uses/dev/raw/raw1and/dev/raw/raw2.Whichseriesofthefollowingcommandswilldroponeofthefailuregroupsfor+DATA1,createanewdiskgroup+DATA2usingtwooftheremainingfourrawdevices,andthencancelthedropoperationfrom+DATA1?()A.AB.BC.CD.D

( ) management includes negotiating the terms and conditions in contracts and ensuring compliance with. the terms and conditions, as well as documenting and agreeing on any changes or amendments that may arise during its implementation or execution.( )合同管理包括合同中的谈判条款和条件,并确保遵守条款和条件,以及记录和商定实施或执行过程中可能出现的任何变更或修正。A.Contract合同B.Document文件C.Communication交流D.Risk风险

在项目管理中的“3C”中,作为前提和基础的是 ()。A.协调(Coordination)B.合作(Collaboration)C.合同(Contract)D.沟通(Communication)

以下属于调用摄像头硬件的权限的是:()A.<uses-permission android:name="android.permission.CAMERA"/>B.<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />C.<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>D.<uses-permission android:name="android.permission.INTERNET"/>

3、注册一个短信到来的广播事件需要在清单文件配置什么权限()A.<uses-permission android:name="android.permission.SMS"/>B.<uses-permission android:name="android.permission.SEND_SMS"/>C.<uses-permission android:name="android.permission.RECEIVE_SMS"/>D.<uses-permission android:name="android.permission.RECEIVE_SEND_SMS"/>

下面哪个是添加网络权限的代码A.<uses-permission android:name="android.permission.INTERNET"/>B.<uses-permission android:name="android.permission.ACCEPT_HANDOVER"/>C.<uses-permission android:name="android.permission.ACCESS_CHECKIN_PROPERTIES"/>D.<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

利用object元素在网页中嵌入flash,flash文件的地址为“mediawonderful.swf”,要求flash动画的宽度和高度分别为500像素,能实现该要求的选项为()。A.<object height="500" width="500" src="mediawonderful.swf" type="application/x-shockwave-flash"/>B.<object height="500" width="500" href="mediawonderful.swf" type="application/x-shockwave-flash"/>C.<object height="500" width="500" data="mediawonderful.swf" type="application/x-shockwave-flash"/>D.<object height="500" width="500" data="mediawonderful.swf" />