单项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application.
The application uses the drag-and-drop functionality.
You need to ensure that the drag-and-drop operation is stopped when a user moves the cursor outside the boundaries of the application form.
Which enumeration member should you use?()
A. DragAction.Cancel
B. DragAction.Drop
C. DragDropEffects.None
D. DragDropEffects.All
相关考题
-
多项选择题
You use Microsoft .NET Framework 4 to create a Windows Presentation Foundation (WPF) application. The application uses the background worker process (BWP). When the user clicks a button, the background worker executes a method named DoCalculations asynchronously. You need to implement a progress bar on the user interface (UI) that informs the user of the progress of DoCalculations. Which two actions should you perform?()
A. Modify the Value property of the progress bar in DoCalculations.
B. Modify the Value property of the progress bar in the ProgressChanged event handler of the background worker.
C. Modify the Value property of the progress bar in the RunWorkerCompleted event handler of the background worker.
D. Call the ReportProgress method of the background worker in DoCalculations.
E. Call the ReportProgress method of the background worker in the DoWork event handler of the background worker. -
单项选择题
You use Microsoft .NET Framework 4 to create an application. The application performs resource-intensive calculations that consist of multiple layers of nested looping. The application will be deployed to servers that contain varying hardware configurations. You need to ensure that the application utilizes CPU resources on the server in the most efficient manner. You want to achieve this goal by using the minimum amount of code. What should you do?()
A. Use multiple System.Threading.Thread objects.
B. Use the background worker process (BWP).
C. Use the Thread.BeginInvoke method.
D. Use the Parallel.For method. -
单项选择题
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The application uses the LINQ ParallelEnumerable. AsParallel method to perform multiple queries on a database. You need to ensure that queries can execute on separate threads concurrently. What should you do? ()
A. Use the AsOrdered method.
B. Use the SelectMany method.
C. Use the AutoBuffered option in the WithMergeOptions method.
D. Use the WithExecutionMode method with the ParallelExecutionMode.ForceParallelism parameter.
