如何跟踪SharePoint的错误日志
摘要:原文地址:http://zimmergren.net/technical/sp-2010-find-error-messages-with-a-correlation-id-token-in-sharepoint-2010Correlation ID, what’s that?In SharePoint 2010, you get a Correlation ID (which is a GUID) attached to your logs/error messages when something happens. This ID can then be used to lookup th
阅读全文
posted @
2012-08-30 15:36
Black Bean
阅读(567)
推荐(0)
增加一条记录到列表中并指定用哪个Content Type
摘要:http://blog.the-dargans.co.uk/2007/04/programmatically-adding-items-to.htmlhttp://asadewa.wordpress.com/2007/11/19/adding-a-custom-content-type-specific-item-on-a-sharepoint-list/Short walk through:Get a instance of the list you want to add the item to.Add a new item to the list:SPListItem newItem =
阅读全文
posted @
2012-07-24 20:57
Black Bean
阅读(144)
推荐(0)
得到站点中所有的Content Type
摘要:SPContentTypeId id =newSPContentTypeId(BaseContentTypeId);IList<SPContentType>ContentTypes= web.ContentTypes.Cast<SPContentType>().Where(c => c.Id.IsChildOf(id)).ToList();using(SPSite site =newSPSite(SPContext.Current.Site.Url)){ using(SPWeb web = site.OpenWeb()) { SPContentTypeCollec
阅读全文
posted @
2012-07-24 20:55
Black Bean
阅读(159)
推荐(0)