Below you will find pages that utilize the taxonomy term “appSettings”
Posts
Settings in Sharepoint_config database instead of appSettings
An alternative to store key-value paired properties in appSettings in web.config we can use Sharepoint_config database by creating our own SPPersistedObject. First we have to create a class which inherits from SPPersistedObject and decorate its properties with [Persisted]:
namespace Takana.SharePoint { public class Settings: SPPersistedObject { \[Persisted\] public string DbConString; public LinkCheckerPersistedSettings() { } public LinkCheckerPersistedSettings(string name, SPPersistedObject parent) : base(name, parent) { } } } ```Then we must create such an object.