Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Somehow the first codeblock isn't visible, so I post it again here ;
var actCol = story.Actors.CreateWritableClone() as NewsFeedActorCollection; actCol.Add(new UserAuthor(CurrentUser), null);
So I have a NewsFeedStory and I want to add another actor to this story.
var actCol = story.Actors.CreateWritableClone() as NewsFeedActorCollection; actCol.Add(new UserAuthor(CurrentUser), null);
Next step would be to update the story.Actors and then update the Story itself.
However, since story.Actors is readonly this is not possible :-/
Anyone have any ideas?