SPBuiltInContentTypeId class

A class that retrieves SPContentTypeId objects that represent identifiers (IDs) for built-in content types.

System.Object
  Microsoft.SharePoint.SPBuiltInContentTypeId

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

No code example is currently available or this language may not be supported.

You can use the fields of this class in a way that is similar to how you use members of an enumeration.

The following example is a console application that examines where the built-in “Item” content type is used in a site collection. The application begins by building a generic list of SPContentTypeUsage objects that contain information about each use of a content type in a site collection. Then it counts the number of times that the content type is used as a site content type and the number of times it is used as a list content type. The results are printed to the console.

No code example is currently available or this language may not be supported.

When the application is run against a Web site created with the Team Site template, it prints the following output to the console.

The content type is inherited by 33 site content types and 20 list content types.

Press ENTER to continue...

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: