Specifies the Multipurpose Internet Mail Extensions (MIME) format string of the content data carried by this content element, which indicates to the server what kind of data this content element represents. You can set the
Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)
ContentType
property of a specific content element when you create it and attach it to a document version. If you do not set the ContentType
property, it is automatically set by the server. MIME is a communications protocol that allows for the transmission of data in many forms, such as audio, binary, or video. A MIME format string consists of a content type, a content subtype, and an optional parameter in the format: "MIME::content type/subtype[;parameter]". For example: "MIME::text/html". MIME defines the following content types:
- text: Represent textual information in a number of character sets. A charset parameter may be used (for example, "MIME::text/plain;charset=us-ascii"). Some subtypes: plain, html, richtext.
- image: Represents still images. Some subtypes: jpeg, gif.
- audio: Represents audio or voice data. Some subtypes: wav, au.
- video: Represents video data or moving-image data. Some subtypes: mpeg, mp4.
- message: Encapsulates an entire formatted message. Some subtypes: rfc822, partial, external-body.
- multipart: Combines several body parts of potentially different types and subtypes. Some subtypes: mixed, alternative, parallel, digest.
- application: Represents application data (such as executables) or binary data.
The following MIME types are specific to FileNet:
- application/x-filenet-declarerecordtemplate: Record template.
- application/x-filenet-documentassembly: Document assembly.
- application/x-filenet-external: An object that contains a single
content element.ContentReference - application/x-filenet-external-is: External Image Services document.
- application/x-filenet-publishtemplate: Publish template.
- application/x-filenet-scenariodefinition: Scenario definition document.
- application/x-filenet-search: Stored search.
- application/x-filenet-searchtemplate: Search template.
- application/x-filenet-workflowdefinition: Workflow definition document.
- multipart/x-filenet-external: An object that contains multiple
content elements only.ContentReference
Namespace: FileNet.Api.Core
Assembly: FileNet.Api (in filenet.api.dll)
Syntax
Visual Basic (Declaration) |
---|
Property ContentType As String |
C# |
---|
string ContentType { get; set; } |
C++ |
---|
property string ContentType abstract { String get(); void set(String value); } |
J# |
---|
/** property */ public string get_ContentType(); /** property */ public void set_ContentType(string value); |
JScript |
---|
public function get ContentType() : String public function set ContentType(value : String); |
Remarks
Metadata
AllowsDefaultChange: false
Cardinality: SINGLE
CopyToReservation: false
Datatype: STRING
IsHidden: false
IsOrderable: false
IsSearchable: false
IsValueRequired: true
MaximumLengthString: null
ModificationAccessRequired: WRITE
PersistenceType: NOT_PERSISTENT
RequiresUniqueElements: false
Settability: READ_WRITE
TargetAccessRequired: READ