For Each appSetting As String In ConfigurationManager.AppSettings.AllKeys
Dim appSettingValue = ConfigurationManager.AppSettings.Get(appSetting)
Next
In this case, appSetting would be returning the key, where as appSettingValue is the value.
The "Ten Commandments", if you will, of .NET development. Definitely not limited to ten, nor groundbreaking by any means, this blog emphasizes simple code that any .NET developer should know; without the fluff and bloated code examples. "Just show me how to..."
No comments:
Post a Comment