This works for me:
string value = System.Configuration.ConfigurationManager.AppSettings[key];
More Related Contents:
- ConfigurationManager.AppSettings – How to modify and save?
- Reading settings from app.config or web.config in .NET
- What’s the difference between the WebConfigurationManager and the ConfigurationManager?
- How to find path of active app.config file?
- How do I get the path of the assembly the code is in?
- How can I automatically filter out soft deleted entities with Entity Framework?
- When should TaskCompletionSource be used?
- Best way to read a large file into a byte array in C#?
- Getting full URL of action in ASP.NET MVC [duplicate]
- Determine what control the ContextMenuStrip was used on
- Best way to access COM objects from C#
- Static Indexers?
- Event Signature in .NET — Using a Strong Typed ‘Sender’? [closed]
- How to send an email in .Net according to new security policies?
- how to make a wizard with ASP.Net MVC
- Custom Caret for WinForms TextBox
- Image.Save() throws exception “Value cannot be null./r/nParameter name: encoder”
- Hosting ASP.NET Core API in a Windows Forms Application
- How to stop Windows service programmatically
- Checking for null before ToString()
- Is it possible to create some IGrouping object
- How can I disable compiler optimization in C#?
- Condition Variables C#/.NET
- ReaderWriterLock vs lock{}
- Using multiple instances of MemoryCache
- How to log Trace messages with log4net?
- Why do arrays in .net only implement IEnumerable and not IEnumerable?
- Should the order of LINQ query clauses affect Entity Framework performance?
- Can we consume a Blazor component as a Web Component within a regular non-Blazor HTML page?
- Call has been made on garbage collected delegate in C#?