In our code we want to grab this information from these setting files..there is bit a difference in VB.net and C# to access this infromation.
VB.NET
In vb.net we have My named namespace
syntax for vb.net
My.Settings.Item("Keyname") = "value to store"
My.Settings.Save()
C#
In C# we have to use System.Configuration name space to access this information.
syntax for c#
System.Configuration.ConfigurationManager.AppSettings["KeyName"] = "value to store"
Here,In key name we can also use index of key.
No comments:
Post a Comment