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

题目

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 ContentControl control to the design surface. The reference a WebClient object to return an HTML string.
  • C、 Add a DocumentViewer control to the design surface. The create a FixedDocument control.

相似考题
更多“You are developing a Windows Pr”相关问题
  • 第1题:

    You are developing a Windows Communication Foundation (WCF) service.You must record all available information for the first 1,000 messages processed, even if they are malformed.You need to configure the message logging section of the configuration file.Which configuration segment should you use? ()

    A.

    B.

    C.

    D.


    参考答案:A

  • 第2题:

    You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy.What should you do?()

    A. Decorate the service implementation class with the following line of code [ServiceBehavior(UseSyncronizationContext = false)]

    B. Decorate the service implementation class with the following line of code [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]

    C. Call the Invoke method of the form and supply a delegate.

    D. Call the BeginInvoke method of the form and supply a delegate.


    参考答案:A

  • 第3题:

    You are developing a Windows Presentation Foundation (WPF) application to play audio files. You add MediaElement mediaElement1 and a Button control named btnPlayAudio to the design surface. The MediaElement co.. audio file. The LoadedBehavior attribute is set to Manual.You add the following code to the main Window.You set the command of the button to MediaCommands.Play.You need to ensure that the application will play the audio file when the button is pressed.What should you add to constructor of the main window ?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第4题:

    You are developing a Windows Communication Foundation (WCF) service. You need to enable security auditing for all events. What should you do?()

    • A、Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.
    • B、Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.
    • C、Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.
    • D、Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.

    正确答案:C

  • 第5题:

    Your virtual environment includes Microsoft Virtual Server 2005 R2 and third-party hypervisors. The virtual machines (VMs) include messaging, application, and database servers. You intend to standardize on Windows Server 2008 R2 Hyper-V servers.  You are developing a migration plan by using the Microsoft Assessment and Planning (MAP) Toolkit. You need to gather the necessary information to analyze the current virtual environment.  Which MAP assessment should you choose?()

    • A、Application Virtualization Assessment
    • B、Virtual Machine Inventory
    • C、Windows Server 2008 R2 Readiness
    • D、Windows Server Role Discovery

    正确答案:B

  • 第6题:

    You are developing a Windows Communication Foundation (WCF) service that is hosted by a Windows Forms Application.The ServiceHost instance is created in the Form Constructor.You need to ensure that the service is not blocked while the UI thread is busy. What should you do?()

    • A、Decorate the service implementation class with the following line of code [ServiceBehavior(UseSyncronizationContext = false)]
    • B、Decorate the service implementation class with the following line of code [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
    • C、Call the Invoke method of the form and supply a delegate.
    • D、Call the BeginInvoke method of the form and supply a delegate.

    正确答案:A

  • 第7题:

    You are developing a Windows Presentation Foundation (WPF) application for a travel reservation system You need to ensure that users can select a range of travel dates. What should you do ?()

    • A、Add single DatePicker control to the design surface
    • B、Add single Calendar control to the design surface
    • C、Add single MediaElement control to the design surface to display a calendar
    • D、Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface

    正确答案:B

  • 第8题:

    You are developing a Windows Presentation Foundation (WPF) application. You need to use XAML to create a custom control that contains two Button controls. From which base class should you inherit? ()

    • A、 FrameworkElement
    • B、 UIElement
    • C、 UserControl
    • D、 Button

    正确答案:C

  • 第9题:

    单选题
    You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service. Which hosting environment should you choose? ()
    A

    Microsoft Internet Information Services (IIS) 6.0

    B

    Windows Process Activation Services (WAS)

    C

    A Windows Forms application

    D

    A Windows Service


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of  the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()
    A

    [Bindable(false)]

    B

    [DesignOnly(false)]

    C

    [EditorBrowsable(EditorBrowsableState.Never)]

    D

    [Browsable(false)]


    正确答案: C
    解析: 暂无解析

  • 第11题:

    单选题
    You are developing a Windows Communication Foundation (WCF) service. Client applications require reliable sessions to access the service.Users report that they receive ServerTooBusyException errors when their client application tries to establish a session. You need to ensure that the service can handle a minimum of 30 client connection requests. Which ReliableSessionBindingElement property should you configure?()
    A

    MaxRetryCount

    B

    MaxTransferWindowSize

    C

    MaxPendingChannels

    D

    InactivityTimeout


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    You are developing a Windows Presentation Foundation (WPF) application. You are implementing a test strategy for the application. You need to ensure that the test class can repeat user input. From which base class should the test class inherit?()
    A

     AutomationElementIdentifier

    B

     AutomationPeer

    C

     Keyboard

    D

     UICues


    正确答案: B
    解析: 暂无解析

  • 第13题:

    You are developing a Windows Communication Foundation (WCF) service. The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. You need to create a message contract for the service.Which code segment should you use?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第14题:

    You are developing a Windows Presentation Foundation (WPF) application for a travel reservation systemYou need to ensure that users can select a range of travel dates.What should you do ?()

    A. Add single DatePicker control to the design surface

    B. Add single Calendar control to the design surface

    C. Add single MediaElement control to the design surface to display a calendar

    D. Add the appropriate Windows Forms references to the project references. Add a single Windows Forms DateTimePicker control to the design surface


    参考答案:B

  • 第15题:

    You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script.  What should you recommend?()  

    • A、 Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script.  Connect to the web role instance by using RDP, and then manually test the startup script.
    • B、 Deploy the application in the Windows Azure Compute Emulator.
    • C、 Deploy the application with a custom error page.
    • D、 Deploy the application and then use IntelliTrace.

    正确答案:A

  • 第16题:

    You are developing a Windows Presentation Foundation (WPF) application The application is for commercial use and requires a valid license key to be entered. You create a project type of Class Library code to validate license keys You need to ensure that the user enters a valid license key during installation of the software. Which deployment should reference the class library?()

    • A、 Click Once
    • B、 Setup Project
    • C、 XBAP
    • D、 XCopy

    正确答案:B

  • 第17题:

    You are developing a web service that will run on a single instance of a Windows Azure worker role.  When interacting with external clients during the testing phase, the service encounters errors that may be related to the format of the HTTP payload.  You need to recommend an approach that allows developers to monitor the service‟s HTTP traffic in real-time.  What should you recommend?()

    • A、 Enable Remote Desktop Protocol (RDP) on the worker role.
    • B、 Use the Windows Azure Diagnostics API to download the IIS logs.
    • C、 Add an endpoint to the worker role to accept HTTPS connections on port 443.
    • D、 Change the service to a run in a Windows Azure web role.

    正确答案:A

  • 第18题:

    You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to design a composite custom control for the application. You include a ListBox control has a property that provides the item count of  the ListBox control. You need to ensure that the property cannot be accessed at design time. Which attribute should you use?()

    • A、[Bindable(false)]
    • B、[DesignOnly(false)]
    • C、[EditorBrowsable(EditorBrowsableState.Never)]
    • D、[Browsable(false)]

    正确答案:D

  • 第19题:

    You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a .NET Framework 2.0 Windows Service application and are busy writing the following installation code for the Windows service: Public Class TestServiceInstaller Implemets Installer 'Additional code to go here End Class You are required to install the Windows service and write the values associated with the service in the Windows Registry. What should you do?()

    • A、The Assembly Registration Tool (Regasm.exe) should be used.
    • B、The Global Assembly Cache Tool (Gacutil.exe) should be used.
    • C、The .NET Services Installation Tool (Regsvcs.exe) should be used.
    • D、The Installer Tool (InstallUtil.exe) should be used.

    正确答案:D

  • 第20题:

    单选题
    You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()
    A

    ICommunicationObject

    B

    IExtension

    C

    IExtensibleObject

    D

    IExtensibleDataObject


    正确答案: C
    解析: 暂无解析

  • 第21题:

    单选题
    You are developing a Windows Presentation Foundation (WPF) application. You configure PresentationTraceSource to track errors in a bound TextBox control in the application. You need to choose the window that the Trace information is sent to Which Visual Studio window should you select ?()
    A

     Autos

    B

     Immediate

    C

     Locals

    D

     Output


    正确答案: D
    解析: 暂无解析

  • 第22题:

    单选题
    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 ContentControl control to the design surface. The reference a WebClient object to return an HTML string.

    C

     Add a DocumentViewer control to the design surface. The create a FixedDocument control.


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a Windows Service application which contains three different Windows services. You are required to only set one Windows service to start automatically when the system is restarted. What should you do?()
    A

    Use the ServiceController class.

    B

    Use the ServiceBase class.

    C

    Use the ServiceProcessInstaller class.

    D

    Use the ServiceInstaller class.


    正确答案: B
    解析: 暂无解析

  • 第24题:

    单选题
    You work as an application developer at Certkiller .com. You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer. This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application: public class EnumerateService : ServiceBase { public static EnumerateService () { this.ServiceName = "Enumerate Service"; this.CanStop = true; } protected override void OnStart (string[] args) { // Enumerate all services and initialize the FileSystemWatcher } protected override void OnStop () { // Stop the FileSystemWatcher and perform cleanup } public static void Main () { EnumerateService service = new EnumerateService(); } } You then create the installer for the Windows service application, and install the Windows service application. You have configured the Windows service Startup type to Automatic, and rebooted the system. You then test the new Windows service application, and find that it is not working.You need to ensure that the service is working properly. What should you do?()
    A

     Override the OnBoot method instead of the OnStart method.

    B

     Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Service.Run ();

    C

     Override the OnLoad method instead of the OnStart method.

    D

     Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Run (service);


    正确答案: D
    解析: 暂无解析