This websie
encrypted XML file using method:
public static void Encrypt(XmlDocument Doc, string ElementToEncrypt, X509Certificate2 Cert)
I want encrypted my whole XML file without second parametr, because I don't want check it my xml file.
Can you give me information, how I should change the code?
您可以使用.DocumentElement,它将为您提供文档的根节点。
Encrypt(doc, doc.DocumentElement.Name, cert)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.