A. B. C. D.
You are defining a class named MyClass that contains several child objects. MyClass contains a method named ProcessChildren that performs actions on the child objects.MyClass objects will be serializable.You need to ensure that the ProcessChildren method is executed after the MyClass object and all its child objects are reconstructed. Which two actions should you perform?()
A.Apply the OnDeserializing attribute to the ProcessChildren method. B.Specify that MyClass implements the IDeserializationCallback interface. C.Specify that MyClass inherits from the ObjectManager class. D.Apply the OnSerialized attribute to the ProcessChildren method. E.Create a GetObjectData method that calls ProcessChildren. F.Create an OnDeserialization method that calls ProcessChildren.
You are developing an application that receives events asynchronously. You create a WqlEventQuery instance to specify the events and event conditions to which the application must respond. You also create a ManagementEventWatcher instance to subscribe to events matching the query.You need to identify the other actions you must perform before the application can receive events asynchronously. Which two actions should you perform?()
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.