You are creating an application using Visual Studio 2010. The application consumes a Windows Communication Foundation (WCF) service.You are adding a service reference to the WCF service. You need to ensure that the generated proxy does not block the call

题目

You are creating an application using Visual Studio 2010. The application consumes a Windows Communication Foundation (WCF) service.You are adding a service reference to the WCF service. You need to ensure that the generated proxy does not block the calling thread when executing a service method. What should you do when adding the service reference? ()

  • A、Set the Collection type to ObservableCollection.
  • B、Select the Reuse types in all referenced assemblies option.
  • C、Select the Generate asynchronous operations option.
  • D、Select the Always generate message contracts option.

相似考题
更多“You are creating an application”相关问题
  • 第1题:

    You are currently in the process of creating an application that reads binary information from a file.You need to ensure that the only the first kilobyte of data is retrieved.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:B

  • 第2题:

    You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  You host the Web application in Microsoft Internet Information Services (IIS) 6.0. You browse theapplication and receive the following error message:  Server Application Unavailable  The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request.  You view the Application event log and discover the following message:  It is not possible to run two different versions of ASP.NET in the same IIS process. Please use theIIS Administration Tool to reconfigure your server to run the application in a separate process.  To ensure productivity you need to solve this problem as quick as possible.  What should you do?()

    • A、You should change the IIS isolation mode.
    • B、You should assign the application to another application pool.
    • C、You should configure all applications that are part of your application's application pool in orderto use the same version of ASP.NET.
    • D、You should run the Aspnet_regiis.exe Tool.
    • E、You should restart the application pool that hosts the application.

    正确答案:B,C

  • 第3题:

    You are creating a Windows Communication Foundation (WCF) service. The service endpoints change frequently. On the service, you add a new ServiceDiscoveryBehavior to the Behaviors collection of the ServiceHost Description property. You need to ensure that client applications can communicate with the service and discover changes to the service endpoints. What should you do?()

    • A、Add a new ServiceDiscoveryBehavior to the Behaviors collection in the client application.
    • B、Add a new AnnouncementClient to the Behaviors collection in the client application.
    • C、Use the FindCriteria class and the UdpDiscoveryEndpoint class to set up the binding in the client application.
    • D、Use the DiscoveryProxy class and the EndpointDiscoveryMetadata class to set up the binding in the client application.

    正确答案:C

  • 第4题:

    Your company has an Active Directory Domain Services (AD DS) domain. You virtualize applications by using Microsoft Application Virtualization (App - V). You are creating an application virtualization package. Which sh ould you use?()

    • A、Microsoft Application Virtualization Sequencer
    • B、Microsoft Application Virtualization Desktop Client
    • C、Microsoft System Center Application Virtualization Streaming Server
    • D、Microsoft System Center Application Virtualization Management Server

    正确答案:A

  • 第5题:

    You work as an application developer at Cer-Tech.com.You are in the process of creating an application for Cert-Tech.com’s Human Resources department that tracks employee benefits You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit: What should you do?()

    • A、 Create a custom section handler class that inherits the ConfigurationSection interface
    • B、 Add a section element to the EmployeeSection element of the application configuration file
    • C、 Create a custom section handler class that implements the IConfigurationSectionHandler interface.
    • D、 Add an EmployeeSection element to the configSections element of the application confguration file
    • E、 Create a custom section handler class that implements the IApplicationSettingsProvider interface
    • F、 Add a section element to the configSections element of the application configuration file

    正确答案:A,F

  • 第6题:

    单选题
    You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a custom control for the application.  The control will be a composite control.Your need to derive from the class that will create the control by using the minimum amount of development effort.What should you do?()
    A

    Derive from the Control class.

    B

    Derive from the UserControl class.

    C

    Derive from the FrameworkElement class.

    D

    Derive from the ContainerControl class.


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

  • 第7题:

    单选题
    You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to deploy a new Applciation.You need to ensure that on deployment, the application meets the following requirements;    (1)It is executed on the client computer.   (2)It is removed from the client computer after the application closed.   (3)It is not displayed in the Add/Remove programs panel on the client computer.     What sould you do?()
    A

    Deploy the application to a central network server.- Access the application by using hte Remote Desktop Connection tool.

    B

    Deploy the application by using the ClickOnce technology.- Use the Mage.exe tool to set the Online Only option in the deployment manifest.

    C

    Deploy the application by using the ClickOnce technologoy.- Set the Install attiribute of the deployment tag to true in the deployment manifest.

    D

    Deploy the application to a CD-ROM by using the ClickOnce technology. - Execute the application from the CD-ROM.


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

  • 第8题:

    单选题
    You are creating a Windows Forms application for a financial service provider by using the .NET Framework 3.5. You have to implement a multiple document interface (MDI) in the application to allow users to open multiple financial documents simultaneously.You need to ensure that whenever the child MDI form is created, the application displays a message in the title bar of the parent MDI that a child form has received focus.   What should you do?()
    A

    Implement theActivated event

    B

    Implement the MdiChildActivate event

    C

    Override the OnParentVisibleChanged method

    D

    Override the OnParentBindingContextChanged method


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

  • 第9题:

    单选题
    You are creating a Windows Forms application by using the .Net Framework 3.5.You plan to design a composite control for the application.You need to derive the control from a base class that supports templates.What should you do?()
    A

    Derive from the Control class.

    B

    Derive from the UserControl class.

    C

    Derive from the ScrollableControl class.

    D

    Derive from the ContainerControl class.


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

  • 第10题:

    单选题
    You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application.The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()
    A

    Create a custom action and set the NoImpersonate property to true

    B

    Create a custom action and set the NoImpersonate property to false

    C

    Create a manifest and set the RequestedExecutionLevel level attribute to AsInvoker.

    D

    Create a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator.


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

  • 第11题:

    单选题
    You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to develop a new control for the application. You need to ensure that the control extends the DataGridView control by allowing the cells to contain multicolored text. What should you do?()
    A

    Override the OnPaint method.

    B

    Write a code segment to handle the CellPainting event.

    C

    Write a code segment to handle the CellParsing event.

    D

    Write a code segment to handle the RowPostPaint event.


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

  • 第12题:

    You have recently completely creating a new application for Certkiller .com.This new application has to load an instance of the Inventory class from a large file named Inventory.dat.You need to ensure that the application executes the loading process in as little time as possible.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:C

  • 第13题:

    You work as an application developer at Certkiller .com. You are in the process of creating an application for Certkiller .com’s Human Resources department that tracks employee benefits. You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit: <?xml version="1.0" encoding="utf-8" ?>   You want to use the .NET 2.0 Configuration API to access the custom section. You need to ensure that programmatic access of the EmployeeSection element is enabled. What should you do?()

    • A、 Create a custom section handler class that inherits the ConfigurationSection interface.
    • B、 Add a section element to the EmployeeSection element of the application configuration file.
    • C、 Create a custom section handler class that implements the IConfigurationSectionHandler interface.
    • D、 Add an EmployeeSection element to the configSections element of the application configuration file.
    • E、 Create a custom section handler class that implements the IApplicatioSettingsProvider interface.
    • F、 Add a section element to the configSections element of the application configuration file.

    正确答案:A,F

  • 第14题:

    You are creating a Windows Forms application by using the .NET Framework 3.5.You have resource files in five different languages.You need to test the application in each language. What should you do?()

    • A、Set the CurrentCulture property explicitly to the respective culture for each language.
    • B、Set the CurrentCulture property explicitly to IsNeutralCulture for each language.
    • C、Set the CurrentUICulture property explicitly to IsNeutralCulture for each language.
    • D、Set the CurrentUICulture property explicitly to the respective culture for each language.

    正确答案:D

  • 第15题:

    You are creating a Windows Forms application by using the .NET Framework 3.5 The application is used by a financial service provider.You discover that the service provider transfers large amounts of data by using XML.You need to read and validate the XMLdocuments in the most time efficient manner.Which technology should you use?()

    • A、The XmlReader class
    • B、The XmlDocument class
    • C、The XmlResolver class
    • D、The LINQ to XML method

    正确答案:A

  • 第16题:

    多选题
    You work as an application developer at Certkiller .com. You are in the process of creating an application for Certkiller .com’s Human Resources department that tracks employee benefits. You have to store current employee data without recompiling the application. You elect to store this employee data as a custom section in the application configuration file. The relevant portion of the application configuration file is shown in the following exhibit:          You want to use the .NET 2.0 Configuration API to access the custom section. You need to ensure that programmatic access of the EmployeeSection element is enabled. What should you do?()
    A

    Create a custom section handler class that inherits the ConfigurationSection interface.

    B

    Add a section element to the EmployeeSection element of the application configuration file.

    C

    Create a custom section handler class that implements the IConfigurationSectionHandler interface.

    D

    Add an EmployeeSection element to the configSections element of the application configuration file.

    E

    Create a custom section handler class that implements the IApplicatioSettingsProvider interface.

    F

    Add a section element to the configSections element of the application configuration file.


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

  • 第17题:

    多选题
    You are creating a Windows Forms application by using the .NET Framework 3.5.You plan to deploy the application in multiple countries and languages.You need to ensure that the application meets the globalization requirements. Which two actions should you perform?()
    A

    Handle server names and URLs as ASCII data

    B

    Use Unicode strings throughout the application

    C

    Use the NumberFormatInfo class for numeric formatting

    D

    Handle strings as a series of individual characters instead of entire strings

    E

    Avoid usage of the SortKey class and the CompareInfo class for sorting purposes


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

  • 第18题:

    多选题
    You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.  You are creating an ASP.NET Web application using .NET Framework 4.0.  The application holds a Web page named MyHome.aspx.  You are creating a button with a rolloverimage on MyHome.aspx. However, when mouse hovered over the button image, the rolloverimage is retrieved from the server in a separate request. You need to use an improved rollover button in which the button„s rolloverimage is already downloaded and stored in the browser’s cache, as a result when you hover over the button, it is instantly displayed. What will you do to accomplish this?()
    A

    Use JavaScript Object Notation.

    B

    Use the RegisterClientScriptBlock method.

    C

    Use the RegisterClientScriptlnclude method.

    D

    Build a JavaScript function.

    E

    Use the RegisterClientScriptResource method.


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

  • 第19题:

    单选题
    You are creating a Windows Forms Application by using the .NET Framework 3.5.You plan to create a Windows Installer package for a Windows Forms application. The package will be deployed on Windows Vista computers.You need to ensure that during deployment the installation does not elevate privileges of the user installing the application.What should you do?()
    A

    Create a custom action and set the NoImpersonate property to true

    B

    Create a custom action and set the NoImpersonate property to false

    C

    Create a manifest and set the RequestedExecutionLevel level attribute to AsInvoker

    D

    Create a manifest and set the RequestedExecutionLevel level attribute to AsAdministrator


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

  • 第20题:

    单选题
    You are creating a Web application that will run on an intranet. The Web application reads comma-delimited text files. The text files reside in a subdirectory below the Web application's root directory. Users must not be able to navigate directly to these files in a Web browser unless they are members of the Accounting role. You need to write an ASP.NET HTTP handler that will use the FileAuthorizationModule class. Which form of authentication should you use?()
    A

     Anonymous

    B

     Certificate

    C

     Forms

    D

    Microsoft Windows Integrated Security


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

  • 第21题:

    多选题
    You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  You host the Web application in Microsoft Internet Information Services (IIS) 6.0. You browse theapplication and receive the following error message:  Server Application Unavailable  The web application you are attempting to access on this web server is currently unavailable.Please hit the "Refresh" button in your web browser to retry your request.  You view the Application event log and discover the following message:  It is not possible to run two different versions of ASP.NET in the same IIS process. Please use theIIS Administration Tool to reconfigure your server to run the application in a separate process.  To ensure productivity you need to solve this problem as quick as possible.  What should you do?()
    A

    You should change the IIS isolation mode.

    B

    You should assign the application to another application pool.

    C

    You should configure all applications that are part of your application's application pool in orderto use the same version of ASP.NET.

    D

    You should run the Aspnet_regiis.exe Tool.

    E

    You should restart the application pool that hosts the application.


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