简体   繁体   中英

Cannot convert from 'System.Xml.XmlNode' to 'Google.GData.Client.IExtensionElementFactory

I'm trying to invite guest to google calendar using GData. I found

http://www.mail-archive.com/google-calendar-help-dataapi@googlegroups.com/msg01759.html

But on the line:

entry.ExtensionElements.Add(fragment.FirstChild);

I get a compile error saying:

Error 3 Argument 1: cannot convert from 'System.Xml.XmlNode' to 'Google.GData.Client.IExtensionElementFactory' 

What am I missing?

我自己解决了:

entry.ExtensionElements.Add(new XmlExtension(fragment.FirstChild));

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM