单项选择题
You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new form in your application.You add a PrintDocument control named pntDoc to the form.To support the print functionality, you write the following code segment in the application (Line numbers are included for reference only.)
You need to ensure that the following requirements are met:
(1)When the user has no print access, font and file stream initializations are not executed and the print operation is cancelled
(2)Print operations are logged whether or not the user has print access
What should you do?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5Theapplicationisusedbyafinancialserviceprovider.YoudiscoverthattheserviceprovidertransferslargeamountsofdatabyusingXML.YouneedtoreadandvalidatetheXMLdocumentsinthemosttimeefficientmanner.Whichtechnologyshouldyouuse?()
A.The XmlReader class
B.The XmlDocument class
C.The XmlResolver class
D.The LINQ to XML method -
单项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5.Youhaveresourcefilesinfivedifferentlanguages.Youneedtotesttheapplicationineachlanguage.Whatshouldyoudo?()
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. -
多项选择题
YouarecreatingaWindowsFormsapplicationbyusingthe.NETFramework3.5.Youplantodeploytheapplicationinmultiplecountriesandlanguages.Youneedtoensurethattheapplicationmeetstheglobalizationrequirements.Whichtwoactionsshouldyouperform?()
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
