SPContentType Members
Include Protected Members
Include Inherited Members
Represents a site or list content type.
The SPContentType type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SPContentType(SPContentType, SPContentTypeCollection, String) | Initializes a new instance of the SPContentType class using the specified parent content type. | |
SPContentType(SPContentTypeId, SPContentTypeCollection, String) | Initializes a new instance of the SPContentType class using the specified SPContentTypeId structure. |
Top
Properties
Name | Description | |
---|---|---|
Description | Gets or sets a string that contains a description of the content type. | |
DescriptionResource | Gets or sets a user-defined localizable resource that represents the content type description. | |
DisplayFormTemplateName | Gets or sets the name of a custom Display form template to use for items assigned this content type. | |
DisplayFormUrl | Gets or set the URL of a custom Display form page to use for items assigned this content type. | |
DocumentTemplate | Gets or sets the document template for the content type. | |
DocumentTemplateUrl | Gets or sets the URL to the content type’s document template. | |
EditFormTemplateName | Gets or sets the name of a custom Edit form template to use for items assigned this content type. | |
EditFormUrl | Gets or set the URL of a custom Edit form page to use for items assigned this content type. | |
EventReceivers | Gets the collection of event receiver definitions for the content type. | |
FeatureId | Gets the identifier of the Feature that created the content type. | |
FieldLinks | Gets an SPFieldLinkCollection that represents the collection of column, or field, references in the content type. | |
Fields | Gets an SPFieldCollection that represents collection of column references included in the content type. | |
Group | Gets and sets the content type group to which the content type is assigned. | |
Hidden | Gets or sets whether the content type is hidden on the list’s New menu. | |
Id | Gets an SPContentTypeId object that represents the content type identifier (ID) of the content type. | |
MobileDisplayFormUrl | Gets or set the URL of a custom mobile Display form page to use for items assigned this content type. | |
MobileEditFormUrl | Gets or set the URL of a custom mobile Edit form page to use for items assigned this content type. | |
MobileNewFormUrl | Gets or set the URL of a custom mobile New form page to use for items assigned this content type. | |
Name | Gets or sets the content type name. | |
NameResource | Gets an SPUserResource object that represents the translations of the name of the content type. | |
NewDocumentControl | Gets or sets a string that identifies the application used to create new documents. | |
NewFormTemplateName | Gets or sets the name of a custom New form template to use for items assigned this content type. | |
NewFormUrl | Gets or set the URL of a custom New form page to use for items assigned this content type. | |
Parent | Gets the parent content type of this content type. | |
ParentList | Gets an SPList object that represents the list in which this SPContentType object resides. | |
ParentWeb | Gets the parent Web site for the content type. | |
ReadOnly | Gets or sets whether the content type is read-only. | |
RequireClientRenderingOnNew | Indicates whether the client is responsible for rendering a new document when it is created. | |
ResourceFolder | Gets the content type's resource folder. | |
SchemaXml | Gets the XML schema that defines the content type. | |
SchemaXmlWithResourceTokens | Gets a non-localized version of the XML schema that defines the content type. | |
Scope | Gets a server-relative URL for the highest level within the scope of a particular content type. | |
Sealed | Gets or sets whether the content type can be modified. | |
Version | Gets the version of the content type. | |
WorkflowAssociations | Gets an SPWorkflowAssociationCollection object that represents the workflow associations for this content type. | |
XmlDocuments | Gets an SPXmlDocumentCollection that represents the XML documents that are stored within the content type. |
Top
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