Question:You develop a serializable class for persisting objects as files.
Every time an object is serialized, you have to update the database with the name of the object
and location
of that file.
You elect to employ the OnSerialized attribute to achieve this objective.
You now need to apply the OnSerialized attribute to a certain method.
What should you do? - (VB.Net) 

A Apply the OnSerialized attribute to the following method:
Public Sub AfterSerialization(sender As Object, e As SerializationEventArgs)
'Update database
End Sub 

B Apply the OnSerialized attribute to the following method:
Public Sub AfterSerialization(sender As Object)
'Update database
End Sub 

C Apply the OnSerialized attribute to the following method:
Public Sub AfterSerialization(context As StreamingContext)
'Update database
End Sub 

D Apply the OnSerialized attribute to the following method:
Public Function AfterSerialization() As StreamingContext
'Update database
End Function 

+ Answer
+ Report
Total Preview: 777

Copyright © 2024. Powered by Intellect Software Ltd