Iâm trying to get an understanding on the use of app.config.
I created a setting using the normal machinery for that ([u]P</u>roject|
projName[u]P</u>roperties...|Settings...). Then I looked in app.config, and there it was. All as expected.
It added:
Code:
<applicationSettings>
<projName.My.MySettings>
<setting name="SavePath" serializeAs="String">
<value>F:\inetpub\IDDS_Logging\DFC\</value>
</setting>
</<projName.My.MySettings>
</applicationSettings>
Then I edited app.config with an additional setting. But in the IDE, intelliSense provides the setting added through the grid, but not the one added directly.
So then I found in Settings.Designer.
vb the following:
Code:
<Global.System.Configuration.ApplicationScopedSettingAttribute(), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Configuration.DefaultSettingValueAttribute( _
"F:\inetpub\IDDS_Logging\DFC\")> _
Public ReadOnly Property SavePath() As String
Get
Return CType(Me("SavePath"),String)
End Get
End Property
Also, in Settings.Settings there is;
Code:
<Setting Name="SavePath" Type="System.String" Scope="Application">
<Value Profile="(Default)">F:\inetpub\IDDS_Logging\DFC\</Value>
</Setting>
</Settings>
But my concern is this: Is the property in Settings.Designer.
vb there only to facilitate code writing? If I change the value in app.config manually (through NotePad, for instnce), will the app use the new value? Or is it required tht that setting be maintained through .NET code in the app that uses that particular app.config file?