Guest daftpunknl Posted September 30, 2002 Posted September 30, 2002 I`m making a class library that takes care of sqlconnections for an application and ff the a query fail i get an email with the query and sql error message. The class library is used by several applications. I want to include the name of the applicate in the email when an query fails. So my question is how can I access information about an application that uses an class library from within the class library? Also: am i correct if i say a class library is (exactly) the same as an assembly? Quote
*Gurus* divil Posted September 30, 2002 *Gurus* Posted September 30, 2002 Class libraries are assemblies, yeah. System.Reflection.Assembly.GetCallingAssembly().GetName().Name Should give you roughly what you need. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.