多项选择题
You discover that a particular group of settings named UserPreferences changes.You need to store the UserPreference settings to prevent affecting other applications. Which two actions should you perform?()
A.Use the Properties.USerPreferences object
B.Use the Properties.Settings.Default.Userprefences object
C.Use the ConfigurationManager.AppSettings object during runtime
D.Create the settings by using Application scope
E.Create the settings by using User scope
相关考题
-
单项选择题
You create an isntance of a BackgroundWorker Component named backgroundworker1.You discover that when the application attempts to cancel the background process you get an exception from the following code segment: backgroundworker1.CancelAsync(); You need to configure the BackgroundWorker component appropriately to prevent to application from exception.What should you do?()
A.Cancel the background process in the backgroundworker1_DoWork event
B.Set the IsBusy property og backgroundworker1 to True before you attempt to cancel
C.Set the WorkerSupportsCancellation property of backgroundworker1 to true before the code
D.Set the DoWorkEventArgs Cancel property to true -
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NetFramework3.5.Youplantodesignacompositecontrolfortheapplication.Youneedtoderivethecontrolfromabaseclassthatsupportstemplates.Whatshouldyoudo?()
A.Derive from the Control class.
B.Derive from the UserControl class.
C.Derive from the ScrollableControl class.
D.Derive from the ContainerControl class. -
单项选择题
YouarecreatingaWindowsFormsApplicationbyusingthe.NETFramework3.5.Usersusetheapplicationtoprocessandapproveinvoices.AlistofrecentlyaccessedinvoicesisstoredintheuserssettingssectionoftheApp.configfile.Youneedtomaintainthelistofinvoicesfromthelastpersistedstate.Whatshouldyoudo?()
A.Use the Properties.Settings object during runtime.
B.Use the Properties.Settings.Default object during runtime.
C.Use the ConfigurationManager.AppSettings object during runtime.
D.Use the ConfigurationManager.GetSection method during runtime.
