I used to be able to do : CurrentPage.Property.Add(property) / .Add(propname, property)
But since the Property object seem to be read-only, how can I add a property to the PropertyDataCollection of a page?
Also it seem strange that the PropertyDataCollection still has Add when its read-only or am I missing something really simple here?
Hello,
The cache handling has been optimized to pass references to the same object (previous implementation created a clone for each fetch), therefore it needs to be read-only. To get a writable copy, simply do this:
PageData x = GetPage(pageLink);
PageData y = x.CreateWritableClone();
now you can modify y.
There is additional information on this topic that has not yet been published, but it should be online this afternoon. Look under RC1 release notes / breaking changes.
Best regards, Magnus Stråle
It's a big change that had to be done, I have seen performance boosts ranging from 30% to 7000% depending on the number of pages you read per page request.