マルチパートエンティティ内で現在の MIME エンティティの直前の MIME エンティティを返します。
パラメータ |
説明 |
search |
- NotesMIMEEntity.SEARCH_DEPTH (1724) (デフォルト) は子エンティティを検索してから同じレベルを検索します。
- NotesMIMEEntity.SEARCH_BREADTH (1723) は同じレベルを検索してから子エンティティを検索します。
|
例
このボタンは、マルチパートエンティティの最後の分岐の終端から、すべてのエンティティを逆順に取得します。
// 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.getPrevEntity(NotesMIMEEntity.SEARCH_BREADTH);
}
} else {
requestScope.status = "Not MIME";
}
// Restore conversion
session.setConvertMIME(true);