Restituisce il numero di elementi nella raccolta. Ottiene il numero, uguale a zero o maggiore, relativo ai campi di tipo AttachmentField. Questa proprietà è di sola lettura.
VBScript
set attachFields = entity.AttachmentFields numFields = attachFields.Count For x = 0 to numFields - 1 set oneField = attachFields.Item x ' ... 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 }