sportdog

导航

 

设置ItemProperties要注意,我找了半天才找对地方.

转载地址:

http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/01/18/creating-sharepoint-items-with-createitemactivity.aspx

http://blog.csdn.net/gdsongrenjun/article/details/6754166

 

  1. Right click on the CreateItemActivity property in the designer.
  2. Select Bind Property 'ItemProperties'.
  3. Create a new member for this property (e.g. itemProperties).
  4. Click OK to close the dialog.
  5. Double click onWorkflowActivated1 activity (we are going to use this activity to setup the item properties).
  6. Once in code view add the following code:
itemProperties = new Hashtable (); 
itemProperties.Add("Title", "My New Item Title"); 
posted on 2013-05-14 16:20  sportdog  阅读(198)  评论(0编辑  收藏  举报