By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,887 Members | 1,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,887 IT Pros & Developers. It's quick & easy.

Getting the name of calling assembly

P: n/a
Gos
Hi,

I have a DLL(say Test.DLL) which is being called by other DLLs in my
application. I want to know which DLL is calling my Test.DLL. I want
to get the name of the calling assembly within my Test.DLL. How can I
do this?

Thanks a lot.
Eric.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello,

"Gos" <er***********@yahoo.com> schrieb:
I have a DLL(say Test.DLL) which is being called by other
DLLs in my application. I want to know which DLL is calling
my Test.DLL. I want to get the name of the calling assembly
within my Test.DLL. How can I do this?


Have a look at the 'System.Reflection.Assembly.GetCallingAssembly' method.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.