SPContentTypeCollection Class

Represents a collection of web or list content types.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

'Declaration
<ClientCallableTypeAttribute(Name := "ContentTypeCollection", ServerTypeId := "{653e9412-6245-4a3f-829b-cfdbf7fd86a5}",  _
	CollectionChildItemType := GetType(SPContentType))> _
<SubsetCallableTypeAttribute> _
Public NotInheritable Class SPContentTypeCollection _
	Inherits SPBaseCollection
'Usage
Dim instance As SPContentTypeCollection

When contained in an SPWeb object, the collection represents a collection of web 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: