ContentType 成员

包括受保护的成员
包括继承的成员

Represents a SPContentType object.

ContentType 类型公开以下成员。

构造函数

  名称 说明
公共方法 ContentType Initializes a new instance of the ContentType object.

页首

属性

  名称 说明
公共属性 Context Returns the context that is associated with the client object. (从 ClientObject 继承。)
公共属性 Description Gets or sets a description of the content type.
公共属性 DescriptionResource
公共属性 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.
公共属性 JSLink Gets or sets the JSLink for the content type custom form template.
公共属性 MobileDisplayFormUrl
公共属性 MobileEditFormUrl
公共属性 MobileNewFormUrl
公共属性 Name Gets or sets a value that specifies the name of the content type.
公共属性 NameResource
公共属性 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. (从 ClientObject 继承。)
公共属性 ObjectVersion Gets a string that indicates the version of the current client object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 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 recreated on the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 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.
公共属性 SchemaXmlWithResourceTokens Gets a non-localized version of the XML schema that defines the content type.
公共属性 Scope Gets a value that specifies a server-relative path to the content type scope of the content type.
公共属性 Sealed Gets or sets whether the content type can be modified.
公共属性 ServerObjectIsNull Gets the server object and returns null if the server object is null. (从 ClientObject 继承。)
公共属性 StringId A string representation of the value of the Id.
公共属性 Tag Gets or sets data that is associated with the client object. (从 ClientObject 继承。)
公共属性 TypedObject Gets the object with the correct type information returned from the server. (从 ClientObject 继承。)
公共属性 WorkflowAssociations Gets a value that specifies the collection of workflow associations for the content type.

页首

方法

  名称 说明
受保护的方法 CheckUninitializedProperty Checks to determine whether the specified value type property of a ClientObject has been initialized. (从 ClientObject 继承。)
公共方法 CustomFromJson Returns a Boolean value that indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 DeleteObject Deletes the content type.
公共方法 FromJson Indicates whether custom code was used to populate an object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
受保护的方法 InitNonPropertyFieldFromJson Initializes a non-property field of the client object based on JavaScript 对象表示法 (JSON) data from the server. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
受保护的方法 InitOnePropertyFromJson (覆盖 ClientObject.InitOnePropertyFromJson(String, JsonReader)。)
公共方法 IsObjectPropertyInstantiated Indicates whether the specified property of the client object is instantiated. (从 ClientObject 继承。)
公共方法 IsPropertyAvailable Returns a Boolean value that indicates whether the specified scalar property has been retrieved or set. (从 ClientObject 继承。)
受保护的方法 LoadExpandoFields Initializes the extended properties associated with the client object when overridden in a derived class. (从 ClientObject 继承。)
公共方法 RefreshLoad Reloads all scalar properties associated with the client object when overridden in a derived class. (从 ClientObject 继承。)
受保护的方法 RemoveFromParentCollection Removes the current client object from the parent client object collection. (从 ClientObject 继承。)
公共方法 Retrieve() Retrieves all scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 Retrieve([]) Retrieves the specified scalar properties associated with the object. 此成员仅供内部使用,不能直接在您的代码中使用。 (从 ClientObject 继承。)
公共方法 ToString (从 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.
受保护的方法 UpdateClientObjectPropertyType Updates the client object property's value to have correct type by using the type information returned from the server. (从 ClientObject 继承。)

页首

另请参阅

引用

ContentType 类

Microsoft.SharePoint.Client 命名空间