通过SPGroup的Description属性是不能获取到组的描述信息的,貌似是一个bug---
Reflect了一下系统的代码,发现系统是这样写的:
protected void Page_Load(object sender, EventArgs e)
{
SPSecurity.RunWithElevatedPrivileges(delegate()
{
SPSite site = new SPSite("http://ecpe-dev:83/sites/sjs/default.aspx");
SPWeb web = site.RootWeb ;
SPGroup g = web.SiteGroups["MyGorup"];
SPFieldMultiLineText text = (SPFieldMultiLineText)web.SiteUserInfoList.Fields[SPBuiltInFieldId.Notes];
SPListItem groupItem = web.SiteUserInfoList.GetItemById(g.ID);
object objDes = groupItem[text.InternalName];
Response.Write(g.Name + "<br/>");
Response.Write( text.GetFieldValueAsHtml(objDes) );
});
}