logo       

Re: New C# SVN version feature...: msg#00089

Subject: Re: New C# SVN version feature...
I am pretty sure there is, but as this is brand new information for myself as well, i have no specifics at this time. I would probably not plan to use this a  storage space :)

Frank Mantek

On 8/16/06, Richard Birkby <rbirkby@xxxxxxxxx> wrote:
Is there a limit on GData (specifically Calendar) storage? With these new extended properties, it would be quite easy to make it look like a file system and store gigabytes in there.


Richard


On 8/16/06, Frank Mantek <fmantek@xxxxxxxxx> wrote:
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 Data API" group.
To post to this group, send email to google-help-dataapi@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to google-help-dataapi-unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/google-help-dataapi
-~----------~----~----~----~------~----~------~--~---

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