![]() ![]() If you need the application so save the value at runtime such as a user preference, then choose User as your scope, otherwise you would choose Application as the scope. User – is read / write at runtime values are saved at the Windows user account level and good for user prefs.Application – is read-only at runtime you can edit a value and have the app use without recompiling.You also define a data type such as string, integer, date, even special types such as connection string. The following examples are using Visual Studio 2008 and VB.NET.Įach value you want to use in your application is defined as simple name=value pairs and saved in special XML files. C# code uses a slightly different syntax the concepts are similar. Once common example is saving database connection string information in a configuration file so that it may be changed without need to recompile the application. ![]() NET framework using Visual Studio can take advantage of built-in tools to simplify or speed up access and saving of runtime values. We used to save our application or user settings in an INI file (dark ages) or more recently in XML files using our own code or classes borrowed from other developers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |