Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SPContentTypeCollection Members

SPContentTypeCollection Members

Windows SharePoint Services 3

Represents a collection of site or list content types.

The SPContentTypeCollection type exposes the following members.

Public property Count Returns the number of objects in the collection. (Overrides SPBaseCollection.Count.)
Public property Item[Int32] Gets the specified content type by using its index within the collection.
Public property Item[String] Gets the specified content type by using its name.
Public property Item[SPContentTypeId] Gets the specified content type by using its content type identifier (ID).
Public property UpgradedPersistedProperties Gets the collection of field names and values for fields that were deleted or changed. (Inherited from SPAutoSerializingObject.)

Public method Add Adds the specified content type to the collection.
Public method BestMatch Searches the collection and returns the SPContentTypeId object that is the nearest match to the specified SPContentTypeId object.
Public method Delete Deletes the specified content type from the collection.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Retrieves the data required to serialize the object. (Inherited from SPAutoSerializingObject.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnDeserialization Called after the object has been deserialized from the file system cache or the database. (Inherited from SPAutoSerializingObject.)
Public method ToString (Inherited from Object.)
Protected method UpdateParent Causes the containing SPPersistedObject, if one exists, to update its state. (Inherited from SPAutoSerializingObject.)

Community Additions

© 2015 Microsoft