Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Config filoe question
Message
 
À
16/09/2005 13:27:04
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
Database:
MS SQL Server
Divers
Thread ID:
01050398
Message ID:
01050417
Vues:
18
To determine the path and name of the application configuration file at run time, you can use the ConfigurationFile property of the current application domain object (this works for both Windows Forms and ASP .NET applications).
For example, in C#:


// Get the current application domain object
System.AppDomain domain = System.Threading.Thread.GetDomain();

// Get the path and name of the application configuration file
string config = domain.SetupInformation.ConfigurationFile;
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform