摘要:
public void sendmail(string email,string expense,string name,string remain) { if (email == string.Empty) { return; } System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(); msg.To.Add(email); msg.From = new MailAddress("from... 阅读全文
摘要:
Sharepoint权限中的关系:权限——角色 ——对象——关联//为角色赋予权限public void RoleAssignment(SPListItem item, SPPrincipal groupOrUser, SPRoleDefinition role) { item.Web.AllowUnsafeUpdates = true; if (!item.HasUniqueRoleAssignments) { item.BreakRoleInheritance(true);//tr... 阅读全文