The HeaderHandler delegate is used to process headers on the stream during serialization. Every subclass of Delegate and MulticastDelegate has a constructor and an Invoke method. See the managed C++ code example given in the description for Delegate.
[Visual Basic] Public Delegate Sub HeaderHandler( _ ByVal headers() As Header _ ) As Object [C#] public delegate object HeaderHandler( Header[] headers ); [C++] public __gc __delegate Object* HeaderHandler( Header* headers[] );
[JScript] In JScript, you can use the delegates in the NGWS frameworks, but you cannot define your own.
The declaration of your event-handling method must have the same parameters as the HeaderHandler delegate declaration.
The declaration of your event-handling method must have the same parameters as the DeserializationEventHandler delegate.
When you create a HeaderHandler, you identify the method that will handle the event. For an overview, see the Delegates/EventModule topic.
Namespace: System.Runtime.Remoting
Assembly: mscorlib.dll