SPDisposeCheckID Reference

Valid values for the SPDisposeCheckID enumeration used by SPDisposeCheckIgnoreAttribute, which allows developers to make exceptions to the rules analyzed by SPDisposeCheck. Links refer to specific rules on Roger Lamb’s Dispose Patterns by Example.

SPDisposeCheckIgnoreAttribute and this enumeration are included in the SPExLib.SharePoint.Tools namespace of the SharePoint Extensions Lib project.

Current as of SPDisposeCheck 1.3.1, released January 29, 2009.

ID Pattern
SPDisposeCheckID_000 Unknown
SPDisposeCheckID_100 Microsoft.SharePoint.SPList.BreakRoleInheritance() method
SPDisposeCheckID_110 Microsoft.SharePoint.SPSite new() operator
SPDisposeCheckID_120 Microsoft.SharePoint.SPSite.OpenWeb() method
SPDisposeCheckID_130 Microsoft.SharePoint.SPSite.AllWebs[] indexer
SPDisposeCheckID_140 Microsoft.SharePoint.SPSite.RootWeb, LockIssue, Owner, and SecondaryContact properties
SPDisposeCheckID_150 Microsoft.SharePoint.SPSite.AllWebs.Add() method
SPDisposeCheckID_160 Microsoft.SharePoint.SPWeb.GetLimitedWebPartManager() method
SPDisposeCheckID_170 Microsoft.SharePoint.SPWeb.ParentWeb property
SPDisposeCheckID_180 Microsoft.SharePoint.SPWeb.Webs property
SPDisposeCheckID_190 Microsoft.SharePoint.SPWeb.Webs.Add() method
SPDisposeCheckID_200 Microsoft.SharePoint.SPWebCollection.Add() method
SPDisposeCheckID_210 Microsoft.SharePoint.WebControls.SPControl GetContextSite() and GetContextWeb() methods
SPDisposeCheckID_220 Microsoft.SharePoint.SPContext Current.Site / SPContext.Site and SPContext.Current.Web / SPContext.Web properties
SPDisposeCheckID_230 Microsoft.SharePoint.Administration.SPSiteCollection[] indexer
SPDisposeCheckID_240 Microsoft.SharePoint.Administration.Add() method
SPDisposeCheckID_300 Microsoft.SharePoint.Publishing.GetPublishingWebs() method
SPDisposeCheckID_310 Microsoft.SharePoint.Publishing.PublishingWebCollection.Add() method
SPDisposeCheckID_320 Microsoft.SharePoint.Publishing.PublishingWeb.GetVariation() method
SPDisposeCheckID_400 Microsoft.Office.Server.UserProfiles.PersonalSite property
SPDisposeCheckID_500 Microsoft.SharePoint.Portal.SiteData.Area.Web property
SPDisposeCheckID_999 All
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: