VB.Net Tutorial/Development/AppSettings

Материал из VB Эксперт
Перейти к: навигация, поиск

Get string from configuration

public class GetConfig
   public Shared Sub Main
        System.Configuration.ConfigurationSettings.AppSettings.Get("Title")
   End Sub
End class
"<configuration>
"    <appSettings>
"        <add key="Title" value="This is my Window Title" />
"    </appSettings>
"</configuration>