更多"You are developing a Windows Presen"的相关试题:
[单项选择]You are developing a Windows Presentation Foundation (WPF) application.You need to display HTML content from a Web page on the WPF form. What should you do?()
A. Add a FlowDocumentReader control to the design surface. Then create a FlowDocument control.
B. Add a DocumentViewer control to the design surface. Then create a FixedDocument control.
C. Add a WebBrowser control to the design surface. Then use the Navigate method to navigate the URI object.
D. Add a ContentControl control to the design surface. Then reference a WebClient object to return an HTML string.
[单项选择] You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation.The service is accessed from your business applications in a server transaction in which the client does not participate.You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?()
A. Set the service binding sendTimeout attribute to 00:00:45.
B. Apply [ServiceBehavior(TransactionTimeout="00:00:45")] to the service implementation.
C. Set the service binding receiveTimeout attribute to 00:00:45.
D. Apply [OperationBehavior(TransactionScopeRequired=false)] to the service operation.