VB.NET Sample app.config Access -
Provide any sample code according to how to integrate the app.config file with applications written in VB.NET Can do. Specifically I need to remove database connect strings from app.cconfig file.
see:
string as string to declare string as string New string ("") "Check to see if they have given the name of the connection string if the string is not IISNullOrEmpty (strconconnect) then retrieve that app.config sReturn = ConfigurationManager from the connection string. & Amp; _ Connection Stats (Streconction). Connection String Else 'Since they did not give the name of the connection string' just hold the default from app.config sReturn = ConfigurationManager. & Amp; Connection connection ("YourConnectionString"). Connection string ending If returning the connection string for calling method return sReturn End Function
Comments
Post a Comment