getPrevSibling (NotesMIMEEntity - JavaScript)

マルチパート MIME エンティティ内で同じレベルにある現在の MIME エンティティの直前の MIME エンティティを返します。

定義場所

NotesMIMEEntity

構文

getPrevSibling() : NotesMIMEEntity
戻り値 説明
NotesMIMEEntity 同じレベルにある、前の MIME エンティティまたは null です。

このボタンは、最初に幅を検索することにより、マルチパートエンティティの最後の分岐の終端にあるすべての子エンティティを取得します。
// Do not automatically convert MIME to rich text
session.setConvertMIME(false);
var mime:NotesMIMEEntity = currentDocument.getDocument().getMIMEEntity();
if (mime != null) {
	// Drill down to last child at bottom of first branch
	var child:NotesMIMEEntity = mime.getNextEntity(NotesMIMEEntity.SEARCH_BREADTH);
	while (child != null) {
		mime = child;
		child = mime.getNextEntity(NotesMIMEEntity.SEARCH_BREADTH);
	}
	// Get content of all children at bottom level
	// of first branch in reverse order
	while (mime != null) {
		requestScope.status += mime.getContentAsText() + "¥n";
		mime = mime.getPrevSibling();
	}
} else {
	requestScope.status = "Not MIME";
}
// Restore conversion
session.setConvertMIME(true);

言語間の参照

LotusScript® NotesMIMEEntity クラスの GetPrevSibling メソッド

Java™ MIMEEntity クラスの getPrevSibling メソッド