You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data. The service contract is defined as follows. (Line numbers are included for reference only) 01 [ServiceContract] 02 public interface IDataU

题目

You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data. The service contract is defined as follows. (Line numbers are included for reference only) 01 [ServiceContract] 02 public interface IDataUpdate 03 { 04 [OperationContract] 05 [TransactionFlow(TransactionFlowOption.Mandatory)] 06 void Update(string accountNumber, double amount); 07 } 08 09 class UpdateService : IDataUpdate 10 { 11 [OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = false)] 12 public void Update(string accountNumber, double amount) 13 { 14 ... 15 } 16 } 17 You need to ensure that the service is invoked within the transaction. What should you do?()

  • A、Replace line 01 with the following code [ServiceContract(SessionMode = SessionMode.NotAllowed)]
  • B、Replace line 01 with the following code [ServiceContract(SessionMode = SessionMode.Required)]
  • C、Call the Invoke method of the form and supply a delegate.
  • D、Call the BeginInvoke method of the form and supply a delegate.

相似考题
更多“You are developing a Windows Co”相关问题
  • 第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题:

    Your computer runs Microsoft Windows XP Professional. You share your computer with two other co-workers. You purchase a new computer. You install Microsoft Windows Vista on the new computer. You need to migrate the following content from the old computer to the new computer:All system and program settingsAll users settingsOnly the content in the C:\Appdata folderWhich tool should you use?()

    A.A

    B.B

    C.C

    D.D


    参考答案:D

  • 第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 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

  • 第5题:

    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

  • 第6题:

    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

  • 第7题:

    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

  • 第8题:

    单选题
    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
    解析: 暂无解析

  • 第9题:

    单选题
    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
    解析: 暂无解析

  • 第10题:

    单选题
    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
    解析: 暂无解析

  • 第11题:

    单选题
    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
    解析: 暂无解析

  • 第12题:

    单选题
    Your computer runs Microsoft Windows XP Professional. You share your computer with two other co-workers.  You purchase a new computer. You install Microsoft Windows Vista on the new computer.  You need to migrate the following content from the old computer to the new computer: All system and program settings  All users settings  Only the content in the C:///Appdata folder  Which tool should you use? ()
    A

    File and Settings Transfer wizard

    B

    Application Compatibility toolkit

    C

    Windows Automated Installation toolkit

    D

    Microsoft Windows Easy Transfer wizard


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

  • 第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 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

  • 第16题:

    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

  • 第17题:

    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

  • 第18题:

    Your computer runs Microsoft Windows XP Professional. You share your computer with two other co-workers.  You purchase a new computer. You install Microsoft Windows Vista on the new computer.  You need to migrate the following content from the old computer to the new computer: All system and program settings  All users settings  Only the content in the C:///Appdata folder  Which tool should you use? ()

    • A、File and Settings Transfer wizard
    • B、Application Compatibility toolkit
    • C、Windows Automated Installation toolkit
    • D、Microsoft Windows Easy Transfer wizard

    正确答案:D

  • 第19题:

    A co-worker is unable to invite you to a Microsoft Windows Meeting Space meeting. You need to receive an invite to the meeting.  What should you do?()

    • A、Sign in to the People Near Me feature.
    • B、Start the Distributed Transaction Coordinator service.
    • C、Create a custom Microsoft Windows Firewall exception to allow invitations from Windows Meeting Space.
    • D、In the Microsoft Windows Mobility Center window, configure the presentation settings.

    正确答案:A

  • 第20题:

    单选题
    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
    解析: 暂无解析

  • 第21题:

    单选题
    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
    解析: 暂无解析

  • 第22题:

    单选题
    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
    解析: 暂无解析

  • 第23题:

    单选题
    A co-worker uses a gadget from the Windows Sidebar feature on their computer. You examine your computer and find that the gadget is not on the list of available gadgets. You need to add this gadget to the Windows Sidebar feature on your computer.  What should you do?()
    A

    Download and install the gadget file.

    B

    Download the gadget file and copy the file to C:///Windows/System32.

    C

    Instruct the co-worker to send the gadget file via e-mail and copy the file to C:///Program Files.

    D

    Instruct the co-worker to send the gadget file via e-mail. Drag and drop the gadget file to the Windows Sidebar feature.


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

  • 第24题:

    单选题
    A co-worker is unable to invite you to a Microsoft Windows Meeting Space meeting. You need to receive an invite to the meeting.  What should you do?()
    A

    Sign in to the People Near Me feature.

    B

    Start the Distributed Transaction Coordinator service.

    C

    Create a custom Microsoft Windows Firewall exception to allow invitations from Windows Meeting Space.

    D

    In the Microsoft Windows Mobility Center window, configure the presentation settings.


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