SPBuiltInFieldId._CheckinComment-Feld
Gibt ein Feld, das Einchecken Kommentare enthält.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared ReadOnly _CheckinComment As Guid
'Usage
Dim value As Guid
value = SPBuiltInFieldId._CheckinComment
public static readonly Guid _CheckinComment
Beispiele
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();
}
Hinweis
Bestimmte Objekte, die IDisposable -Schnittstelle implementieren, und Sie müssen vermeiden, diese Objekte im Arbeitsspeicher beibehalten, wenn sie nicht mehr benötigt werden. Informationen zu bewährten Codierung finden Sie unter Disposing Objects.