Groups | Blog | Home
all groups > dotnet clr > august 2003 >

dotnet clr : Is there an event associated with Assembly.Load?


hidden
8/8/2003 6:21:28 PM
I want to get a method executed when an AppDomain loads
an assembly, but before the entry point is executed. Is there a
means to do this? An event of some sort? The closest I seem to
be able to get is to define a static constructor for a dummy class,
but I have to actually instanciate the class. I don't think there's
a way, but I thought I'd ask. Pl. advise. Thanks.

Jan Kotas [MS]
8/10/2003 2:40:22 PM
You are looking for AppDomain.AssemblyLoad. MSDN has an example on how to
use it:
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemappdomainclassassemblyloadtopic.asp.

-Jan

This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

AddThis Social Bookmark Button