|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Gets the collection of content types for the Web site.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
The ContentTypes property returns only the content types that exist on the current Web site, not all content types in the current scope. Use the AvailableContentTypes property to return all content types in the current scope, including those of any parent Web sites.
When you add a content type to this collection, you make it available to lists in the current Web site and in any child Web sites.