logo       

New C# SVN version feature...: msg#00087

Subject: New C# SVN version feature...
The google calendar has added a new feature, the support for the gd:extendedProperty. This is not documented yet, but it's there, and what it means is that you can store a limitied set of custom data per entry.
I verified that you can have a gd:extendedPropery element as a child of an entry element, it has a name and a value attribute:

hence and entry could look like this:

<gd:extendedProperty name='http://frank.schemas/2005#prop' value='Mantek'></gd:extendedProperty>

To create those in C#, the code looks like:

                    prop = new ExtendedProperty();
                    prop.Name = "http://frank.schemas/2005#prop";
                    prop.Value = "Mantek";

                    eventEntry.ExtensionElements.Add(prop);

to find one it looks like:

                    foreach (Object o in eventEntry.ExtensionElements )
                    {
                        ExtendedProperty p = o as ExtendedProperty;
                        if (p != null)
                        {
                            Tracing.TraceMsg("Found one extended property");
                            Assert.AreEqual(p.Name, " http://frank.schemas/2005#prop", "Expected the same entry");
                            Assert.AreEqual(p.Value, "Mantek", "Expected the same entry");
                        }
                    }
               

So those of you who need to add additional information for one reason or the other, sync up to SVN and let me know if this works out for you.


Regards


Frank Mantek



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group.
To post to this group, send email to google-calendar-help-dataapi@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to google-calendar-help-dataapi-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>