0

我试图弄清楚如何从 base.ItemAdding(properties); 获取列表项的标题。我知道它在属性中的某个地方,因为我想要做的是复制刚刚添加到另一个列表中的项目,这意味着相同的项目将被添加到另一个列表中,谁能帮我从刚刚添加的项目,例如标题、描述、...

已经谢谢了。

4

1 回答 1

1

Hey - in the future if you are using the ItemAdding event - you can access properties from the AfterProperties collection

public override void ItemAdding(SPItemEventProperties properties)
       {

           String title = properties.AfterProperties["Title"].ToString();
于 2010-05-17T10:42:33.287 回答