Thursday, April 8, 2010

Built-in SharePoint constants

http://blog.hompus.nl/2010/02/05/prevent-hardcoded-sharepoint-ids-in-your-code

The SPBuiltInFieldId class contains 314 GUID’s for the default SharePoint fields.
The SPBuiltInContentTypeId class contains 34 content type ID’s for the default SharePoint content types.
The FeatureIds class contains 16 GUID’s for the MOSS publishing features
The FieldId class contains 61 GUID’s for the publishing fields.
The ContentTypeId class contains 10 content type ID’s for the publishing content types.
The PropertyConstants class contains 42 names of the standard user profile properties

The WssFeatureIds class however is public and the only place the 24 WSS feature id’s are available.

Because this class is not documented I list all fields:

AnnouncementsList
BasicWebParts
ContactsList
CustomList
DataConnectionLibrary
DataSourceLibrary
DiscussionsList
DocumentLibrary
EventsList
GanttTasksList
GlobalContentTypes
GlobalFields
GlobalMobilityRedirect
GridList
IssuesList
LinksList
NoCodeWorkflowLibrary
PictureLibrary
SurveysList
TasksList
TeamCollaboration
WebPageLibrary
WorkflowHistoryList
XmlFormLibrary

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.