SPContentType methods
The SPContentType type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddWorkflowAssociation | Obsolete. Use the WorkflowAssociations.Add method. | |
Delete | Deletes the content type. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetLocalizations | Returns the collection of localizations for the content type for the specified culture. | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
RemoveWorkflowAssociation | Obsolete. Use the WorkflowAssociations.Remove method. | |
ToString | (Inherited from Object.) | |
Update() | Updates the content type definition that is stored in the database with any changes you have made programmatically. | |
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. | |
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. | |
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. | |
UpdateWorkflowAssociation | Obsolete. Use the WorkflowAssociations.Update 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. | |
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. | |
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. | |
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. | |
ValidateName | Confirms whether a string is acceptable as the name for a content type. |
Top