简体   繁体   English

是否可以在INI文件中为特定节添加多个节名称

[英]Is it possible to add multiple section Names for a particular section in INI files

I would like to know whether we have any chance of adding multiple section names for a particular section in an INI file. 我想知道我们是否有机会在INI文件中为特定节添加多个节名称。

For eg, 例如

[Section1]
[Section2]
key = value
key1 = value1

If it is possible, the can any one help me to get the "value2" by passing "Section1" name in c#. 如果有可能,任何人都可以通过在C#中传递“ Section1”名称来帮助我获得“ value2”。

No. 没有。

The INI file format is extremely simple, and only has two levels of keys - the section name, and the actual key. INI文件格式非常简单,并且只有两个级别的密钥-节名称和实际密钥。 It's just a very simple key-value store. 这只是一个非常简单的键值存储。

You simply defined an empty configuration section Section1 , and then a Section2 with two keys, key and key1 . 您只需定义一个空的配置节Section1 ,然后定义一个带有两个键keykey1Section2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM