ContentSubType (NotesMIMEEntity - JavaScript)

Read-only. The second part of the Content-Type of a MIME entity.

Defined in

NotesMIMEEntity

Syntax

getContentSubType() : string

Usage

The content sub-type further classifies the data in the body of a MIME entity. For example, if the MIME Content-Type is image/gif, the this property is gif.

Examples

This button gets the MIME content from the current document.
var doc:NotesDocument = currentDocument.getDocument();
var mime:NotesMIMEEntity = doc.getMIMEEntity();
if (mime != null) {
	var m:string = "Content type: " + mime.getContentType() + "\n" +
	"Content subtype: " + mime.getContentSubType() + "\n" +
	"Character set: " + mime.getCharset() + "\n" +
	"Encoding: " + mime.getEncoding();
	requestScope.status = doc.getItemValueString("Subject") + "\n" + m + "\n" +
	mime.getHeaders() + "\n" + mime.getContentAsText();
} else {
	requestScope.status = "Not MIME - " + doc.getItemValueString("Subject");
}