Settings
01 Syntax
Microsoft.VisualBasic.ComponentModel.Settings.Settings`1
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | 从配置数据的实例对象创建配置映射 |
| LoadFile | 1 | |
| Load | 1 | 使用ProfileItem来标记想要作为变量的属性 |
| CreateEmpty | 1 | |
| op_Explicit | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| SettingsData | 1 | The target object instance that provides the data source for this config engine. |
04 Members
#ctor(
`0)从配置数据的实例对象创建配置映射
Parameters
| Name | Type | Description |
|---|---|---|
config | `0 | - |
LoadFile(
String, Action(Of `0, String))Parameters
| Name | Type | Description |
|---|---|---|
XmlFile | String | 目标配置文件的Xml文件的文件名 |
Returns
可以调用的配置项的数目,解析失败则返回0
Load(
`0)使用ProfileItem来标记想要作为变量的属性
Parameters
| Name | Type | Description |
|---|---|---|
Data | `0 | - |
SettingsData
The target object instance that provides the data source for this config engine.
CreateEmpty()
op_Explicit(Settings(Of T))