Apq.Cfg.ICfgSection.GetSection(string).md 709 B

Apq.Cfg

Apq.Cfg.ICfgSection

ICfgSection.GetSection(string) Method

获取子节

Apq.Cfg.ICfgSection GetSection(string key);

Parameters

key System.String

子节键名

Returns

ICfgSection
子节对象

Example

var dbSection = cfg.GetSection("Database");
var connSection = dbSection.GetSection("Connection"); // 等同于 cfg.GetSection("Database:Connection")