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

SPContentType methods

The SPContentType type exposes the following members.

  Name Description
Public method AddWorkflowAssociation Obsolete. Use the WorkflowAssociations.Add method.
Public method Delete Deletes the content type.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetLocalizations Returns the collection of localizations for the content type for the specified culture.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method RemoveWorkflowAssociation Obsolete. Use the WorkflowAssociations.Remove method.
Public method ToString (Inherited from Object.)
Public method Update(Boolean) Updates the content type definition that is stored in the database and, optionally, updates all content types that inherit from this content type.
Public method Update(Boolean, Boolean) Updates the content type definition that is stored in the database, optionally updates all content types that inherit from this content type, and optionally throws an exception when it encounters a child content type that cannot be modified.
Public method Update() Updates the content type definition that is stored in the database with any changes you have made programmatically.
Public method UpdateIncludingSealedAndReadOnly Commits changes to the content type into the database and applies changes to all derived content types, including content types that are sealed or read-only.
Public method UpdateWorkflowAssociation Obsolete. Use the WorkflowAssociations.Update method.
Public method UpdateWorkflowAssociationsOnChildren() Propagates changes in this content type’s workflow associations to content types that are derived from this content type and also to instances of this content type that have been applied to lists.
Public method UpdateWorkflowAssociationsOnChildren(Boolean) Propagates changes in this content type’s workflow associations to content types that are derived from this content type and also to instances of this content type that have been applied to lists. Optionally flags objects touched by the operation as changed.
Public method UpdateWorkflowAssociationsOnChildren(Boolean, Boolean, Boolean) Propagates changes in this content type’s workflow associations to content types that are derived from this content type, or to instances of this content type that have been applied to lists, or to both. Optionally flags objects touched by the operation as changed.
Public method UpdateWorkflowAssociationsOnChildren(Boolean, Boolean, Boolean, Boolean) Propagates changes in this content type’s workflow associations to content types that are derived from this content type or to instances of this content type that have been applied to lists, or to both. Optionally marks objects touched by the operation as changed. Also optionally suppresses exceptions that are thrown because a child is either sealed or read-only.
Public method Static member ValidateName Confirms whether a string is acceptable as the name for a content type.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.