0 out of 1 rated this helpful - Rate this topic

SPBuiltInFieldId._CheckinComment Field

Identifies a field that contains check-in comments.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public static readonly Guid _CheckinComment

SPSite oSiteCollection = SPContext.Current.Site;

SPWebCollection collWebsites = oSiteCollection.AllWebs;

foreach (SPWeb oWebsite in collWebsites)

{

SPListCollection collLists = oWebsite.Lists;

foreach (SPList oList in collLists)

{

if (oList.BaseType == SPBaseType.DocumentLibrary)

{

SPDocumentLibrary oDocumentLibrary = (SPDocumentLibrary)oList;

if (!oDocumentLibrary.IsCatalog && oList.BaseTemplate !=

SPListTemplateType.XMLForm)

{

// get the value in the '_CheckinComment' column

// of the object

SPField guidCheckinComment =

oDocumentLibrary.Fields[SPBuiltInFieldId._CheckinComment);

}

}

oWebsite.Dispose();

}

Note Note

Certain objects implement the IDisposable interface and you must avoid retaining these objects in memory after they are no longer needed. For information about good coding practices, see Disposing Objects.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ