SharePoint SPGroup.Description不能设置超过512个字符的字符c# [英] SharePoint SPGroup.Description not setting characters more than 512 characters c#
问题描述
我们正在使用下面的代码使用c#在SharePoint中设置说明
We are using the below code to set the description in SharePoint using c#
SPGroup.Description ="jjk ....."; (该字符串包含超过512个字符)
SPGroup.Description = "jjk....."; (The string contains more than 512 characters)
执行此语句后,我们得到说明不能超过512个字符".错误,并且未在目标上创建组
After executing this statement we get "Description cannot be more than 512 characters" error and the group is not created on target
对象模型和客户端对象模型的行为相同
Same is the behavior for both Object and Client Object model
我们有相同的解决方案吗?
Do we have any fix for the same
推荐答案
这是设计使然,如果要存储超过512个字符的组描述,作为一种解决方法,我们可以创建一个自定义列表来存储组名称和描述(多行文本).
This is by design, if you want to store more than the 512 characters for the group description, as a workaround, we can create a custom list to store the group name and description(multiple line of text).
最好的问候,
丹尼斯
这篇关于SharePoint SPGroup.Description不能设置超过512个字符的字符c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!