2020-11-17から1日間の記事一覧

App.configからの読込(独自Section)

VB

■事前準備 ・プロジェクト→プロパティ→参照設定から、以下を追加 -System.Configuration ■独自セクション定義 ・<configSections>の直下に<section name>を追加 <configSections> <section name="FilePaths" type="System.Configuration.NameValueFileSectionHandler" restartOnExternalChanges="false" /> </configSections> ・section nameに指定した名称で、タグを切る <FilePaths> </filepaths></section></configsections>