单项选择题
Windows Communication Foundation (WCF) application uses a data contract that has several data members. You need the application to throw a Serialization Exception 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 Known Type attribute to the data contract.Set a default value in each of the data member declarations.
B. Add the Known Type attribute to the data contract.Set the Order property of each data member to unique integer value.
C. Set the Emit Default Value property of each data member to false.
D. Set the Is Required property of each data member to true.
相关考题
-
多项选择题
Refer to the exhibit. Which two statements are true about the output from the show standby vlan50 command?()
A.The command standby 1 preempt was added to Catalyst_A
B.Catalyst_A is load sharing traffic in VLAN 50
C.Hosts using the default gateway address of 192.168.1.1 will have their traffic sent to192.168.1.11 even after Catalyst_A becomes available again
D.Hosts using the default gateway address of 192.168.1.2 will have their traffic sent toCatalyst_A -
单项选择题
YoucreateaWebpagenamedTestPage.aspxandausercontrolnamedcontainedinafilenamedTestUserControl.ascx.YouneedtodynamicallyaddTestUserControl.ascxtoTestPage.aspx.Whichcodesegmentshouldyouuse?()
A.protected void Page_Load(object sender, EventArgs e) { Control userControl=Page.LoadControl("TestUserControl.ascx"); Page.Form.Controls.Add(userControl); }
B.protected void Page_Load(object sender, EventArgs e) { Control userControl = Page.FindControl("TestUserControl.ascx"); Page.Form.Controls.Load(userControl); }
C.protected void Page_PreInit(object sender, EventArgs e) { Control userControl =Page.LoadControl("TestUserControl.ascx");Page.Form.Controls.Add(userControl); }
D.protected void Page_PreInit(object sender, EventArgs e) { Control userControl = Page.FindControl("TestUserControl.ascx"); Page.Form.Controls.Load(userControl); } -
问答题
什么是成本报表?成本报表的作用是什么?
