Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPContentTypeCollection class

Represents a collection of web or list content types.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableTypeAttribute(Name = "ContentTypeCollection", ServerTypeId = "{653e9412-6245-4a3f-829b-cfdbf7fd86a5}", 
	CollectionIndexerMethodClientName = "GetById", CollectionCreateEntityMethodClientName = "Create", 
	CollectionChildItemType = typeof(SPContentType), SampleUrl = "{apiroot}/web/lists({listid})/contenttypes")]
[SubsetCallableTypeAttribute]
public sealed class SPContentTypeCollection : SPBaseCollection

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.