0

Can´t find a way to get my ApplicationName. Found a static method to get and set app name but I am not sure how to use it.

Erik Philips
  • 53,428
  • 11
  • 128
  • 150
Guilherme Longo
  • 2,278
  • 7
  • 44
  • 64
  • Could I get this way: SqlMembershipProvider msmp = new SqlMembershipProvider(); string appName = msmp.ApplicationName.ToString(); ? – Guilherme Longo Nov 21 '12 at 13:01
  • 1
    This should help http://stackoverflow.com/questions/272821/get-executing-assembly-name-from-referenced-dll-in-c-sharp – kenny Nov 21 '12 at 13:02

1 Answers1

1

Found a very simple way to retrieve my application name:

SqlMembershipProvider msmp = new SqlMembershipProvider();
string appName = msmp.ApplicationName.ToString();

;O)

Guilherme Longo
  • 2,278
  • 7
  • 44
  • 64