开发者

Sharepoint--Increment the metadata when document is copy or added, but dont increment when move

开发者 https://www.devze.com 2023-01-19 05:30 出处:网络
I have an event handler and Itemadded event. I want to increment the metadata only if document is added or copy from one开发者_Go百科 libraray to another, not if it is moved.You will need to provide y

I have an event handler and Itemadded event. I want to increment the metadata only if document is added or copy from one开发者_Go百科 libraray to another, not if it is moved.


You will need to provide your end user an easy way to move the document. That can easily be done with the Move() method of the SPFile object. Once in the code for the move, you can manually increment the metadata field.

Start here: http://msdn.microsoft.com/en-us/library/ms470176.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消