This documentation is archived and is not being maintained.

SPContentTypeCollection Class

Windows SharePoint Services 3

Represents a collection of site or list content types.

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

[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPContentTypeCollection : SPBaseCollection

When contained in an SPWeb object, the collection represents a collection of site content types; when contained in an SPList object, it represents a collection of list content types.

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: