Export (0) Print
Expand All

SPContentType Methods

Windows SharePoint Services 3

The SPContentType type exposes the following members.

  NameDescription
Public method AddWorkflowAssociation Adds the specified workflow association to the content type.
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 Deletes the specified workflow association from the content type’s collection.
Public method ToString (Inherited from Object.)
Public method Update() Updates the content type definition that is stored in the database with any changes you have made programmatically.
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 and, optionally, updates all content types that inherit from this content type. This method also optionally throws an exception when it encounters a child content type that cannot be modified.
Public method UpdateWorkflowAssociation Updates the specified workflow association.
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 flags 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

Community Additions

ADD
Show:
© 2015 Microsoft