我是VB.Net的新手。我有需要创建自定义配置部分。我已经阅读了一些文件,但我无法使其发挥作用。感谢任何帮助。
我需要在配置部分阅读这样的结构。
<configSections>
<section name="reportingTabCollectionSection" type="mydll.ReportingTabSection, mydll"/>
</configSections>
<reportingTabCollectionSection>
<reportingTabCollection>
<reportingTab tabName="Parent Tab 1" visible="true">
<reportingTab tabName="Son 1" visible="true"/>
<reportingTab tabName="Son 2" visible="true"/>
</reportingTab>
<reportingTab tabName="Parent Tab 2" visible="false">
<reportingTab tabName="Child 1" visible="true"/>
<reportingTab tabName="Child 2" visible="true"/>
</reportingTab>
</reportingTabCollection>
</reportingTabCollectionSection>
或者喜欢这个类的结构
Public Class ReportTab
Public Property TabName As String
Public Property Visible As Boolean
Public Property SubTab As IList(Of ReportTab)
End Class