この Entity オブジェクトの添付ファイル フィールドを含む、AttachmentFields コレクション オブジェクトを戻します。
AttachmentFields プロパティは読み取り専用です。このフィールドはプログラムで変更できません。しかし、個々の AttachmentField オブジェクトを取得すると、その Attachments コレクションを更新できます。つまり、フィールド内では個々の Attachment オブジェクトを追加または削除できますが、フィールド自体 (または、フィールドのコレクション) は変更できません。
attachments の概要については、「Attachments および Histories」を参照してください。
「添付ファイル情報の取得と設定」も参照してください。
VBScript
entity.AttachmentFields
Perl
$entity->GetAttachmentFields();
VBScript
set fields = entity.AttachmentFields For Each fieldObj in fields ' Do something with each AttachmentField object ' ... Next
Perl
# Get the list of attachment fields $attachfields = $entity->GetAttachmentFields(); # Find out how many attachment fields there # are so the for loop can iterate them $numfields = $attachfields->Count(); for ($x = 0; $x < $numfields ; $x++) { # Get each attachment field $onefield = $attachfields->Item($x); # ...do some work with $onefield }