Item

説明

コレクション内の指定されたアイテムを戻します。AttachmentField オブジェクトを取得します。

このメソッドの引数は、数値インデックス (itemNum) または文字列 (name) のいずれでもかまいません。

構文

VBScript

collection.Item(itemNum) 
collection.Item(name) 

Perl

$collection->Item(itemNum);
$collection->ItemByName(name); 
識別子
説明
collection
AttachmentFields コレクション オブジェクトは、レコード内のすべての添付ファイル フィールドを表します。
itemNum
コレクションのインデックスとして機能する Long。このインデックスは 0 ベースなので、コレクション内の最初のアイテムは番号 0 であり、1 ではありません。
name
コレクション内のキーとして機能する String。この文字列は、該当する AttachmentField の FieldName に対応します。
戻り値
コレクション内の指定された位置の AttachmentField オブジェクト。

VBScript

set attachFields = entity.AttachmentFields 
numFields = attachFields.Count
For x = 0 to numFields - 1
     set oneField = attachFields.Item x 
     ' ... 
Next

フィードバック