ContentType Members
Include Protected Members
Include Inherited Members
Indicates a change to an SPContentType object. Represents a Web site or list content type.
The ContentType type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ContentType |
Top
Properties
Name | Description | |
---|---|---|
Context | Returns the context that is associated with the client object. (Inherited from ClientObject.) | |
Description | Gets or sets a description of the content type. | |
DisplayFormTemplateName | Gets or sets a value that specifies the name of a custom display form template to use for list items that have been assigned the content type. | |
DisplayFormUrl | Gets or sets a value that specifies the URL of a custom display form to use for list items that have been assigned the content type. | |
DocumentTemplate | Gets or sets a value that specifies the file path to the document template used for a new list item that has been assigned the content type. | |
DocumentTemplateUrl | Gets a value that specifies the URL of the document template assigned to the content type. | |
EditFormTemplateName | Gets or sets a value that specifies the name of a custom edit form template to use for list items that have been assigned the content type. | |
EditFormUrl | Gets or sets a value that specifies the URL of a custom edit form to use for list items that have been assigned the content type. | |
FieldLinks | Gets the column (also known as field) references in the content type. | |
Fields | Gets a value that specifies the collection of fields for the content type. | |
Group | Gets or sets a value that specifies the content type group for the content type. | |
Hidden | Gets or sets a value that specifies whether the content type is unavailable for creation or usage directly from a user interface. | |
Id | Gets a value that specifies an identifier for the content type. The ContentTypeId type is the identifier for the specified content type. The identifier is a string composed of hexadecimal characters. The identifier must be unique relative to the current site collection and site, and must follow the pattern of prefixing a ContentTypeId with its parent ContentTypeId. | |
Name | Gets or sets a value that specifies the name of the content type. | |
NewFormTemplateName | Gets or sets a value that specifies the name of a custom new form template to use for list items that have been assigned the content type. | |
NewFormUrl | Gets or sets a value that specifies the URL of a custom new form to use for list items that have been assigned the content type. | |
ObjectData | Gets the object data for the current client object. (Inherited from ClientObject.) | |
ObjectVersion | Gets a string that indicates the version of the current client object. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.) | |
Parent | Gets the parent content type of the content type. | |
Path | Tracks how a client object is created in the ClientRuntimeContext class, so that the object can be re-created on the server. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.) | |
ReadOnly | Gets or sets a value that specifies whether changes to the content type properties are denied. | |
SchemaXml | Gets a value that specifies the XML Schema representing the content type. | |
Scope | Gets a value that specifies a server-relative path to the content type scope of the content type. | |
ServerObjectIsNull | Gets the server object and returns null if the server object is null. (Inherited from ClientObject.) | |
Tag | Gets or sets data that is associated with the client object. (Inherited from ClientObject.) | |
WorkflowAssociations | Gets a value that specifies the collection of workflow associations for the content type. |
Top
Methods
Name | Description | |
---|---|---|
CheckUninitializedProperty | Checks to determine whether the specified value type property of a ClientObject has been initialized. (Inherited from ClientObject.) | |
CustomFromJson | Returns a Boolean value that indicates whether custom code was used to populate an object. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.) | |
DeleteObject | Deletes the content type. | |
FromJson | Indicates whether custom code was used to populate an object. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.) | |
InitNonPropertyFieldFromJson | Initializes a non-property field of the client object based on JSON data from the server. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.) | |
InitOnePropertyFromJson | (Overrides ClientObject.InitOnePropertyFromJson(String, JsonReader).) | |
IsObjectPropertyInstantiated | Indicates whether the specified property of the client object is instantiated. (Inherited from ClientObject.) | |
IsPropertyAvailable | Returns a Boolean value that indicates whether the specified scalar property has been retrieved or set. (Inherited from ClientObject.) | |
LoadExpandoFields | When overridden in a derived class, initializes the extended properties associated with the client object. (Inherited from ClientObject.) | |
RefreshLoad | Reloads all scalar properties associated with the client object when overridden in a derived class. (Inherited from ClientObject.) | |
RemoveFromParentCollection | Removes the current client object from the parent client object collection. (Inherited from ClientObject.) | |
Retrieve() | Retrieves all scalar properties associated with the object. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.) | |
Retrieve([]) | Retrieves the specified scalar properties associated with the object. This member is reserved for internal use and is not intended to be used directly from your code. (Inherited from ClientObject.) | |
ToString | (Inherited from Object.) | |
Update | Updates the content type definition that is stored in the database and, optionally, updates all content types that inherit from the content type. |
Top