| 70-529 Exam |
| 70-529 - Exam Information |
| Question of the day |
You write a .NET Framework remoting application that broadcasts messages to client computers through a central server by raising events on the client computers. Message details are contained in an argument in the event delegate, as shown in the following code segment. public delegate void MessageArrivedHandler(BroadcastEventArgs args); public class BroadcastEventArgs { public string Message; public string Sender; public DateTime TimeSent; } You need to ensure that the client computer can access the message details contained in the event argument. Your solution cannot change the common language runtime (CLR) security restrictions. What should you do?
Answer(s)
Apply the Serializable attribute to the BroadcastEventArgs object.