SPContentType properties

The SPContentType type exposes the following members.

Properties

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

Top

See also

Reference

SPContentType class

Microsoft.SharePoint namespace