题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-03 21:40:01

[单项选择] You are developing a user control for Windows Presentation Foundation (WPF) application. The user control contains a button. Both the user control and the hosting control must receive the button click event. You need to ensure that the user control responsd to the button click event before hosting control responds to the event. What should you do ?()
A.  Use a bubbling routed event. In the button click event handler, set the Handled property to True
B.  Use a bubbling routed event. In the button click event handler, set the Handled property to False
C.  Use a standard Microsoft .NET event. Set Handled property to true.
D.  Use a tunneling routed event. Set the handled property to false.

更多"You are developing a user control f"的相关试题:

[单项选择] You are developing a Web control. The Web control captures user address information in a Web application. You create a class named AddressControl that inherits from CompositeControl. This control consists of child controls.You need to ensure that the child controls are properly output to the browser.Developers using your control must be able to set the appropriate text for labels. In addition, they must be able to pull user address information from the associated text boxes during postback. What should you do?()
A. Override the EnsureChildControls method of the base class. Add the child controls to the base container.
B. Override the CreateControlCollection method of the base class. Add the child controls to the ControlCollection class
C. Override the CreateChildControls method of the base class. Add the child controls to the base container.
D. Override the DataBindChildren method of the base class. Add the child controls to the ControlCollection class.
[单项选择]You'd better not say anything about it in his presence. He often______ offence at others' comments on his work.
A. makes
B. takes
C. receives
D. accepts
[单项选择]A Windows 7 user has documents spread throughout multiple hard drives and wishes to organizeand search them in one panel. Which of the following features should they be shown?()
A. Windows Explorer
B. My documents
C. Windows Desktop Search 4.0
D. Libraries
[单项选择] You are debugging a Windows Communication Foundation (WCF) service. The service uses signed and encrypted messages.You need to configure logging so that you can read the contents of the messages. What should you do?()
A. Set maxSizeMessagesToLog to 10
B. Set logMessageAtServiceLevel to true.
C. Set maxMessagesToLog to 10.
D. Set logMessageAtTransportLevel to true.
[单项选择]You are implementing a Windows Communication Foundation (WCF) client application that consumes the ICatalog and lCatalog2 service interfaces.You need to ensure that the client discovers services implementing these interfaces. The services may already be online or may come online within a 30 second time limit. How should you use WCF Discovery to accomplish this?()
A. Create one FindCriteria object for each interface and set the Duration of each FindCriteria to 30 seconds. Call the FindAsync method of the DiscoveryClient class twice, one time for each of the FindCriteria objects, to search for the services.
B. Create one FindCriteria object for each interface and set the Duration of each FindCnteria to two seconds. Create a loop that calls the Find method of the DiscoveryClient class to search for the services. Within each loop iteration, call the Find method of the DiscoveryClient class once for each of the FindCriteria objects. Run the loop until a service is found or 30 seconds pass.
C. Create a single FindCriteria object and add both interfaces to its ContractTypeNames collection. Set the criteria's Duration to two seconds. Create a loop that calls the Find method of the DiscoveryClient class to search for the services. Within each loop iteration, call the Find method of the DiscoveryClient class to search for the services Run the loop until a service is found or 30 seconds pass.
D. Create a single FindCritera object and add both interfaces to the ContractTypeNames collection. Set the Duration to 30 seconds and use the FindAsync method of the DiscoveryClient class to search for the services.
[单项选择]You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()
A. NetTcpContextBinding
B. BasicHttpContextBinding
C. NetTcpBinding
D. NetMsmqBinding
[单项选择] You are developing a Windows Communication Foundation (WCF) client application. The client application contains the following code. [ServiceContract] public interface ISocialStatus { [OperationContract] [WebInvoke(UriTemplate = "/statuses/update.xml?status-{text}")] void UpdateStatus(string text); } public class SocialClient : ClientBase, ISocialStatus { ... } The configuration file contains the following lines. binding="webHttpBinding" contract="SocialApp.ISocialStatus" bindingConfiguration="BindingConfig" /> You need to ensure that the service is consumed. Which code segment should you use?()
A. var client = new SocialClient("SocialClient"); client.Endpoint.Behaviors.Add(new WebHttpBehavior());
B. var client = new SocialClient("SocialClient"); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehovior());
C. var client = new SocialClient("POST"); client.Endpoint.Behaviors.Add(new WebHttpBehovior());
D. var client = new SocialClient("POST"); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehavior());

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码