Apq.Cfg.Xml.XmlFileCfgSource.SetXmlByColonKey(System.Xml.XmlDocument,string,string).md 1.2 KB

Apq.Cfg.Xml.XmlFileCfgSource

XmlFileCfgSource.SetXmlByColonKey(XmlDocument, string, string) Method

根据冒号分隔的键路径设置 XML 文档中的节点值

private static void SetXmlByColonKey(System.Xml.XmlDocument doc, string key, string? value);

Parameters

doc System.Xml.XmlDocument

XML 文档

key System.String

冒号分隔的键路径(如 "Database:Connection:Timeout")

value System.String

要设置的值,为 null 时设置为空字符串