SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My question is regarding writing to and reading from owstimer configuration file.

Could anyone provide any of examples how to do so? I tried searching but didn't find any good examples.

Also to note it is my own configuration, my own structure will be ...

Waiting for response

share|improve this question
up vote 1 down vote accepted

Im assuming that you are using this for a custom timer job. There is an article here that explains it in further detail but essentially your code would look like this:

System.Configuration.ConfigurationManager.AppSettings[key]

Here is a couple articles for further explanation. http://doitwithsharepoint.blogspot.com/2011/03/config-file-for-sharepoint-custom-timer.html

http://msdn.microsoft.com/en-us/library/cc406686(v=office.12).aspx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.