多项选择题
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 work as an application developer at Certkiller .com. You are required to launch the App.exe process, and specify sample.txt as the input file. App.exe will then use the contents of sample.txt to establish the environment’scurrent settings.You need to ensure that the code you use meets these requirements. What should you do?()
A.A
B.B
C.C
D.D -
多项选择题
Youarecreatinganapplicationthatprovidesinformationaboutthelocalcomputer.Theapplicationcontainsaformthatlistseachlogicaldrivealongwiththedriveproperties,suchastype,volumelabel,andcapacity.Youneedtowriteaprocedurethatretrievespropertiesofeachlogicaldriveonthelocalcomputer.Whatshouldyoudo?()
A.Retrieve an instance of the FileSystemInfo class.
B.Retrieve an instance of the DriveInfo class.
C.Retrieve the drive capacity by using the DriveInfo.TotalSize property.
D.Determine if the drive is available by using the FileSystemInfo.Attributes property.
E.Retrieve the drive names of all logical drives on a computer by using the DriveInfo.GetDrives method.
F.Retrieve the drive capacity by using the FileSystemInfo.Attributes property. -
单项选择题
You work as an application developer at Certkiller .com. You would like to create a custom performance counter for an application that you created recently. To do this, you decide to create a custom category named ApplicationPerformance and a performance counter named HitNumber.You need to ensure that this counter is shared across numerous applications. What should you do?()
A.A
B.B
C.C
D.D
