Entity 오브젝트의 첨부 필드를 포함하는 AttachmentFields 콜렉션을 리턴합니다.
AttachmentFields 특성은 읽기 전용입니다. 이 필드는 프로그램 방식으로 수정할 수 없습니다. 그러나 개별 AttachmentField 오브젝트를 검색한 후 해당 Attachments 콜렉션을 업데이트할 수 있습니다. 다른 말로 하면, 필드 내에서는 개별 Attachment 오브젝트를 추가하거나 제거할 수 있지만 필드 자체(또는 필드 콜렉션)를 수정할 수는 없습니다.
첨부의 개요에 대해서는 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 }