vb.net 读取配置文件

前端之家收集整理的这篇文章主要介绍了vb.net 读取配置文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

app.config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings >
<add key ="TemplateFilePath" value ="C:\Temp\Temp.xlsx"/>
</appSettings>

<system.diagnostics>
...
</system.diagnostics>
</configuration>

---------------------------------------------------------------------------------------------------

xxx.cs

Imports System.Configuration

Private fnex As String = ConfigurationManager.AppSettings("TemplateFilePath").ToString()

---------------------------------------------------------------------------------------------------

原文链接:https://www.f2er.com/vb/257166.html

猜你在找的VB相关文章