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!

ResolveEventHandler Delegate

This delegate is used to handle the OnTypeResolveEvent and OnResourceResolveEvent events on Assembly. If the runtime class loader cannot resolve a reference to a type or a resource through normal means, these events are raised to give the caller a chance to tell the runtime which assembly the referenced class or resource is in. Cast EventArgs to a String to find the name of the requested Type or resource.

[Visual Basic]
Public Delegate Sub ResolveEventHandler( _
   ByVal sender As Object, _
   ByVal e As EventArgs _
) As Assembly
[C#]
public delegate Assembly ResolveEventHandler(
   object sender,
   EventArgs e
);
[C++]
public __gc __delegate Assembly* ResolveEventHandler(
   Object* sender,
   EventArgs* e
);

[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 ResolveEventHandler delegate declaration.

sender
The object that was the source of the event.
e
The arguments supplied by the object describing the event.

Remarks

Every subclass of Delegate and MulticastDelegate has a constructor and an Invoke method. See the Managed C++ code example given in the description for the Delegate.

Requirements

Namespace: System.Reflection

Assembly: mscorlib.dll

See Also

System.Reflection Namespace