我创建了一个名为TheList
的新用户设置System.Collections.Specialized.StringDictionary
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If My.Settings.TheList Is Nothing Then
My.Settings.TheList = New System.Collections.Specialized.StringDictionary
End If
My.Settings.TheList.Add("Not", "Working")
My.Settings.Save()
End Sub
然而,出于某种原因My.Settings.TheList
实际上总是"没有"我的词典条目永远不会保存。