单项选择题
You work as an application developer at Certkiller .com. You are preparing to run diagnostics on an application by using TraceSwitch objects.
You start by adding the following elements to the application configuration file: You then test the TraceSwitch settings by using the code displayed in the exhibit below:
What represents the output that will be displayed by this test?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
你作为应用程序开发人员在Certkiller.com上班 ,Certkiller.com 使用 Visual Studio.NET 2005 作为其应程序开发平台。您最近完成了一类名为 TestReward 的开发和包中的类。NET 2.0 程序集命名为 TestObj.dll。你发布后,并用于客户端应用程序后,您决定将移动TestReward 类从 TestObj.dll程序集 到TestRewardObj.dll 程序集。你要确保你发布的更新后的TestObj.dll 和TestRewardObj.dll 程序集时,客户端应用程序可以继续工作,而不需要重新编译。你应该做什么?()
A.应使用TypeForwardedTo属性
B.应使用TypeConvertor.ConvertTo方法
C.应使用InternalsVisibleTo属性
D.应使用该类型的Convertor.ConvertFrom方法 -
多项选择题
Youaredevelopinganapplicationthatreceiveseventsasynchronously.YoucreateaWqlEventQueryinstancetospecifytheeventsandeventconditionstowhichtheapplicationmustrespond.YoualsocreateaManagementEventWatcherinstancetosubscribetoeventsmatchingthequery.Youneedtoidentifytheotheractionsyoumustperformbeforetheapplicationcanreceiveeventsasynchronously.Whichtwoactionsshouldyouperform?()
A.Start listening for events by calling the Start method of the ManagementEventWatcher.
B.Set up a listener for events by using the EventArrived event of the ManagementEventWatcher.
C.Use the WaitForNextEvent method of the ManagementEventWatcher to wait for the events.
D.Create an event handler class that has a method that receives an ObjectReadyEventArgs parameter.
E.Set up a listener for events by using the Stopped event of the ManagementEventWatcher. -
单项选择题
要创建自定义的异常类,所以名为 ProductDoesNotExistException 的自定义的异常由用户指定的产品不可用时,会在一个新的应用程序中显示消息。此自定义的异常类将采取产品 id 作为参数的构造函数,并且公开此值通过产品 id。你现在是创建名为 UpdateProduct 的一种方法。此方法将用于生成和管理 ProductDoesNotExistException 异常,如果产品 id 变量中包含的值为 0。您需要确保适当的代码使用 UpdateProduct 方法。你应该做什么?()
A.
B.
C.
D.
