我使用以下代码更新Windows Mobile MC67设备上的APN设置:
XmlDocument configDoc = new XmlDocument();
configDoc.LoadXml(
"<wap-provisioningdoc>" +
"<characteristic type=\"CM_GPRSEntries\">" +
"<characteristic type=\"Connection_Name\">" +
"<parm name=\"UserName\" value=\"web\"/>" +
"<parm name=\"Password\" value=\"web\"/>" +
"<characteristic type=\"DevSpecificCellular\">" +
"<parm name=\"GPRSInfoAccessPointName\" value=\"APN_Value\" />" +
"</characteristic>" +
"</characteristic>" +
"</characteristic>" +
"</wap-provisioningdoc>"
);
ConfigurationManager.ProcessConfiguration(configDoc, false);
它会更新APN值,但在我点击“编辑APN”后再保存时才会应用它。有没有人有任何想法?