Tag: 苔藓

以编程方式将用户权限添加到Sharepoint中的列表

如何以编程方式将用户权限添加到Sharepoint中的列表? 我想将权限“Contribute”添加到某个列表的用户或组。 我正在使用c#。

不使用文件系统在C#中进行序列化

我有一个简单的2D字符串数组,我想将它填入MOSS中的SPFieldMultiLineText。 这映射到ntext数据库字段。 我知道我可以序列化为XML并存储到文件系统,但我想在不触及文件系统的情况下进行序列化。 public override void ItemAdding(SPItemEventProperties properties) { // build the array List<List> matrix = new List<List>(); /* * populating the array is snipped, works fine */ // now stick this matrix into the field in my list item properties.AfterProperties[“myNoteField”] = matrix; // throws an error } 看起来我应该可以这样做: XmlSerializer s = new XmlSerializer(typeof(List<List>)); properties.AfterProperties[“myNoteField”] […]