2012-09-11 5 views
13

Was ist der Hauptunterschied zwischen System.Configuration.ConfigurationManager.AppSettings [ "key"] und System.Configuration.ConfigurationSettings.AppSettings [ "key"]?Unterschied zwischen Konfigurationsmanager und Configuration

+4

http://www.philosophalgeek.com/2007/11/26/difference-between-configurationsettings-and-configurationmanager/ –

+0

@HariGillala möchten Sie vielleicht dies in eine Antwort verwandeln. –

Antwort

6
+0

Warum wurde veraltet> @ Christian.K – Karthick

+0

Eine mögliche Antwort ist in der [link] (http://www.philosophicalgeek.com/2007/11/26/difference-between-configurationsettings-and-configurationmanager/) @Hari Gillala hat als Kommentar zu deiner Frage gepostet. –

+0

ja habe es danke .. @ Christian.K – Karthick

0

'System.Configuration.ConfigurationSettings.AppSettings' sehen kann, ist veraltet: Veraltet bedeutet alt oder nicht mehr in Gebrauch. Sie wurde durch System.Configuration! System.Configuration.ConfigurationManager.AppSettings

3

ersetzt. Denken Sie daran, dass das ConfigurationManager-Objekt in einer anderen (DLL-) Assembly ist, obwohl der Namespace identisch ist.

Configuration Namensraum: System.Configuration Assembly: System.Configuration (in System.Configuration.dll)

Configuration Namensraum: System.Configuration Assembly: System (in System.dll)

Anton