visitor statistics Config App di Console Application | Dimas A Lasama

Kl di web base itu namanya Web.Config tapi kl di Console Application namanya Application Configuration File

untuk langkah nya sebagai berikut :D

Klik Add

Pilih Application Configuration File

Kemudian tambahkan Kode berkikut using System.Configuration;

tambahkan di File config

<configuration>
<appSettings>
<add key=”nama1″ value=”nama1″ />
<add key=”nama2″ value=”nama2″/>
</appSettings>
</configuration>

untuk menggunakan
string configstring = ConfigurationManager.AppSettings["nama1"];


Share →

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>