开发者

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

开发者 https://www.devze.com 2023-01-22 14:23 出处:网络
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

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.X开发者_开发问答ml.XmlNode' to 'Google.GData.Client.IExtensionElementFactory' 

What am I missing?


I solved it myself:

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

精彩评论

暂无评论...
验证码 换一张
取 消