NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HeaderHandler Delegate

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.

Parameters [Visual Basic, C#, C++]

The declaration of your event-handling method must have the same parameters as the HeaderHandler delegate declaration.

headers
The headers of the event.

Remarks

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.

Requirements

Namespace: System.Runtime.Remoting

Assembly: mscorlib.dll

See Also

System.Runtime.Remoting Namespace