<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2157078164517103759.post2445608487621026708..comments</id><updated>2009-10-14T18:09:00.159-07:00</updated><category term='Windows Communication Foundation'/><category term='Content Database'/><category term='MVVM'/><category term='BCS'/><category term='Workspace'/><category term='BDC'/><category term='ECM'/><category term='K2.net 2003'/><category term='Windows Workflow Foundation'/><category term='SQL Server'/><category term='Secure Store Service'/><category term='SharePoint Online'/><category term='SharePoint Topology'/><category term='SharePoint Deployment'/><category term='Document Sets'/><category term='Office365'/><category term='Azure'/><category term='Visual Studio 2010'/><category term='SharePoint Performance'/><category term='Configuration'/><category term='Ribbon'/><category term='User Profile Service'/><category term='Excel Services'/><category term='SharePoint Mobile'/><category term='Records Management'/><category term='PowerShell'/><category term='Social Computing'/><category term='Digital Assets'/><category term='SharePoint Upgrade'/><category term='Office Web Application'/><category term='K2 blackpoint'/><category term='Exchange Online'/><category term='MOSS'/><category term='My Blog News'/><category term='K2 Roles'/><category term='User Control'/><category term='User Group'/><category term='Unified Communications'/><category term='SharePoint Administration'/><category term='Word Automation Services'/><category term='K2 Deployment'/><category term='Unit Testing'/><category term='Lists'/><category term='K2.net General'/><category term='Windows 7'/><category term='LINQ'/><category term='WCM'/><category term='SharePoint Security'/><category term='K2.net Best Practices'/><category term='SharePoint 2010 Development'/><category term='.NET General'/><category term='Health Analyzer'/><category term='Localization'/><category term='RIA Services'/><category term='Sandbox Solutions'/><category term='PerformancePoint'/><category term='Windows Virtual PC'/><category term='ADFS'/><category term='Workflow'/><category term='Visio Services'/><category term='Records Center'/><category term='Productivity Hub'/><category term='MOSS Development'/><category term='K2 SmartObjects'/><category term='Kerberos'/><category term='SharePoint 2010'/><category term='SharePoint Branding'/><category term='FAST'/><category term='Office 2010'/><category term='SharePoint Architecture'/><category term='Lync Online'/><category term='CAS'/><category term='Extranets'/><category term='Enterprise Search'/><category term='K2 blackpearl'/><category term='SharePoint Governance'/><category term='BI'/><category term='SSRS'/><category term='SharePoint Designer'/><category term='SharePoint 2010 Search'/><category term='Access Services'/><category term='Training'/><category term='Service Application Framework'/><category term='Backup Restore'/><category term='InfoPath'/><category term='Silverlight'/><category term='Web Analytics'/><title type='text'>Comments on A Static State: Copy SPListItem.Version (SPListItemVersion) Part 1...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.astaticstate.com/feeds/2445608487621026708/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html'/><author><name>Jason Apergis</name><uri>http://www.blogger.com/profile/01817509015412502702</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-2836042752621077971</id><published>2009-10-14T18:09:00.159-07:00</published><updated>2009-10-14T18:09:00.159-07:00</updated><title type='text'>I made some important updates associated to this b...</title><content type='html'>I made some important updates associated to this blog here - http://www.k2distillery.com/2009/10/copy-splistitemversion.html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2836042752621077971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2836042752621077971'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1255568940159#c2836042752621077971' title=''/><author><name>Jason Apergis</name><uri>http://www.blogger.com/profile/01817509015412502702</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1628724974'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-2565154619957716465</id><published>2009-09-29T17:08:10.083-07:00</published><updated>2009-09-29T17:08:10.083-07:00</updated><title type='text'>From what I understand - calling SystemUpdate will...</title><content type='html'>From what I understand - calling SystemUpdate will not prevent events from being raised (http://msdn.microsoft.com/en-us/library/ms461526.aspx).  &lt;br /&gt;&lt;br /&gt;I think in the case that I was developing this - I had to call DisableEventFiring and EnableEventFiring because I had other event handlers on the list.  Trying to recall this from almost two years ago, you see I am calling a method called MoveItem from the ItemUpdated method.  Let&amp;#39;s say I also had an OnItemAdded event handler on the list, in this case I would want to block that event handler from being raised.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2565154619957716465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2565154619957716465'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1254269290083#c2565154619957716465' title=''/><author><name>Jason Apergis</name><uri>http://www.blogger.com/profile/01817509015412502702</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1628724974'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-4197502508036041093</id><published>2009-09-29T04:55:33.823-07:00</published><updated>2009-09-29T04:55:33.823-07:00</updated><title type='text'>to stop event firing, what if we use SystemUpdate(...</title><content type='html'>to stop event firing, what if we use SystemUpdate() rather Update() for an item&lt;br /&gt;&lt;br /&gt;Majid</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/4197502508036041093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/4197502508036041093'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1254225333823#c4197502508036041093' title=''/><author><name>Majid Baig</name><uri>http://www.blogger.com/profile/06903474983024777525</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://4.bp.blogspot.com/_uYnExplRIB4/SlOvJST1LMI/AAAAAAAAAAk/b7MBCHhVJGs/S220/IMAGE_307.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1780113659'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-2295463121327815202</id><published>2008-09-26T17:27:00.000-07:00</published><updated>2008-09-26T17:27:00.000-07:00</updated><title type='text'>Hi Todd,&lt;br&gt;&lt;br&gt;The archiveItem object is created ...</title><content type='html'>Hi Todd,&lt;BR/&gt;&lt;BR/&gt;The archiveItem object is created in the MoveItem() method. &lt;BR/&gt;&lt;BR/&gt;As for the classArchiveItemEventHandler class I understand there is a little disconnect between going from the ArchiveItem() method to the MoveItem() method. However the code is accesible to me anymore and that is why I blogged it :-) Regardless, the real point of the blog it so show the MoveItem() method and how to go through the version history and move it into a new item in the correct order...&lt;BR/&gt;&lt;BR/&gt;Jason</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2295463121327815202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2295463121327815202'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1222475220000#c2295463121327815202' title=''/><author><name>Jason Apergis</name><uri>http://www.blogger.com/profile/01817509015412502702</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1628724974'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-7547660732520242690</id><published>2008-09-26T07:44:00.000-07:00</published><updated>2008-09-26T07:44:00.000-07:00</updated><title type='text'>What is the archiveItem object?&lt;br&gt;&lt;br&gt;public clas...</title><content type='html'>What is the archiveItem object?&lt;BR/&gt;&lt;BR/&gt;public classArchiveItemEventHandler : SPItemEventReceiver {    public overridevoid ItemUpdated(SPItemEventProperties properties) {        ArchiveItem(properties);        base.ItemUpdated(properties);    }}&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;There is no archiveItem declared?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/7547660732520242690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/7547660732520242690'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1222440240000#c7547660732520242690' title=''/><author><name>Todd</name><uri>http://www.blogger.com/profile/05692980996506781303</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-936372644'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-811353027731234169</id><published>2008-04-12T06:48:00.000-07:00</published><updated>2008-04-12T06:48:00.000-07:00</updated><title type='text'>mlh - all I can say is this is the code in product...</title><content type='html'>mlh - all I can say is this is the code in production and it works.&lt;BR/&gt;&lt;BR/&gt;&lt;BR/&gt;lgamiz - if I understand you correctly you are getting a runtime error when trying to set the check in comments?  the other fields I am setting like Created, Modified, etc. are read only fields too.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/811353027731234169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/811353027731234169'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1208008080000#c811353027731234169' title=''/><author><name>Jason Apergis</name><uri>http://www.blogger.com/profile/01817509015412502702</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1628724974'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-9136242059179695674</id><published>2008-04-11T12:44:00.000-07:00</published><updated>2008-04-11T12:44:00.000-07:00</updated><title type='text'>Thanks a lot for the great example. &lt;br&gt;&lt;br&gt;i appr...</title><content type='html'>Thanks a lot for the great example. &lt;BR/&gt;&lt;BR/&gt;i appreciate  if somebody can help me with these two problems:&lt;BR/&gt;1) I became always a error with the two event methos DisableEventFiring(); and EnableEventFiring(); (right not are als comments)&lt;BR/&gt;2) How can i set the CheckInComments because i tried to set it with if(sourceField.Title == "_CheckInComments"){&lt;BR/&gt;archiveItem[sourceField.Title] = version[sourceField.Title];&lt;BR/&gt;}&lt;BR/&gt;but if i use the method Update archiveItem.Update(); a compilation error is displayed "the checkInComments is readonly" &lt;BR/&gt;&lt;BR/&gt;With the method archiveItem.CheckIn(string Comments) can i do that, but i must use it with the method Checkout which creates a new Version.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/9136242059179695674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/9136242059179695674'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1207943040000#c9136242059179695674' title=''/><author><name>lgamiz</name><uri>http://www.blogger.com/profile/03392355556758247729</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-187249806'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-5903644959501104511</id><published>2008-02-06T02:28:00.000-08:00</published><updated>2008-02-06T02:28:00.000-08:00</updated><title type='text'>Appreciated the sample a lot, thanks!&lt;br&gt;In my cas...</title><content type='html'>Appreciated the sample a lot, thanks!&lt;BR/&gt;In my case it does not work anyway, my item comes from a simple custom list, has versionning and content type.&lt;BR/&gt;The first update always raise an exception. &lt;BR/&gt;The only wy I can make it work is when I'm outside event handlers.&lt;BR/&gt;One comment&lt;BR/&gt;your treatment is occuring before the base.ItemUpdated(properties) but you just deleted the item !?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/5903644959501104511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/5903644959501104511'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1202293680000#c5903644959501104511' title=''/><author><name>mlh</name><uri>http://www.blogger.com/profile/18266770023621688176</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1604931277'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-2553882717345693502</id><published>2007-12-21T06:18:00.000-08:00</published><updated>2007-12-21T06:18:00.000-08:00</updated><title type='text'>Thanks for the exemple.  Just a point about the Da...</title><content type='html'>Thanks for the exemple.  Just a point about the DateTime.  You need to convert the DateTime to localtime because Sharepoint give you the Datetime in Greenwich format.&lt;BR/&gt;&lt;BR/&gt;if (version[sourceField.Title] != null &amp;&amp; version[sourceField.Title].GetType().Name == "DateTime")&lt;BR/&gt;                                archiveItem[sourceField.Title] = Convert.ToDateTime(version[sourceField.Title]).ToLocalTime();&lt;BR/&gt;                            else&lt;BR/&gt;                                archiveItem[sourceField.Title] = version[sourceField.Title];</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2553882717345693502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/2553882717345693502'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1198246680000#c2553882717345693502' title=''/><author><name>LeNational</name><uri>http://www.blogger.com/profile/09164843126638615980</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1700368726'/></entry><entry><id>tag:blogger.com,1999:blog-2157078164517103759.post-5322089031915950891</id><published>2007-10-29T05:10:00.000-07:00</published><updated>2007-10-29T05:10:00.000-07:00</updated><title type='text'>Thnx for the reference ;)</title><content type='html'>Thnx for the reference ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/5322089031915950891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2157078164517103759/2445608487621026708/comments/default/5322089031915950891'/><link rel='alternate' type='text/html' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html?showComment=1193659800000#c5322089031915950891' title=''/><author><name>Robin Meuré</name><uri>http://www.blogger.com/profile/06878262430984779866</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://data.paiq.nl/photos/max/149687XF6347F.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.astaticstate.com/2007/10/copy-version-history-with_5.html' ref='tag:blogger.com,1999:blog-2157078164517103759.post-2445608487621026708' source='http://www.blogger.com/feeds/2157078164517103759/posts/default/2445608487621026708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-55775356'/></entry></feed>
