Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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.