.NET Settings File Available Types -
When a .NET settings modify the file, then I am given a choice of type of settings. However, my Not available in the 'Browse' window as well as accessible by the project.
What determines whether any type of setting can be used for file settings?
I'm making a type of I would like to be able to save, and I need to know that I need to change it to use it in a setting file.
(Vs 2008 - .NET 3.5)
What do you need to do With "hack" .setting and .designer.cs files, documented as small
If you create a custom type in your project, such as:
Namespace MyApp {Public Structure MyType {public string StringValue; }}
To show it as an option in the Settings Editor, you must first add the setting value that uses the same type of files as follows:
Settings file.Settings:
& lt; Setting = name = "settings name, where" type = "my app. Mytype" scope = "user" & gt; & Lt; Value profile = "(default)" /> & Lt; / Settings & gt;
Settings File.Designer.com
[Global :: System.Common. User Skeptating Attribute ()] [Global :: Systems. Diagnostics.DebugonronUserCodeAttribute () Public Global :: MyApp.MyType SettingNameGoesHere {get ({global :: MyApp.MyType} (this ["SettingNameGoesHere"])); } Set {this [SettingNameGoesHere "] = value;}}
Comments
Post a Comment