설명
콜렉션에 지정되어 있는 항목을 리턴합니다.
이 메소드에 대한 인수는 숫자 색인(itemNum) 또는 문자열(이름)일 수 있습니다.
구문
VBScript
collection.Item (itemNum)
collection.Item (name)
Perl
$collection->Item(itemNum);
$collection->ItemByName(name);
- ID
- 설명
- collection
- 레코드의 한 필드에 있는 첨부 세트를 나타내는 Attachments 콜렉션 오브젝트.
- itemNum
- 콜렉션에 대한 색인의 역할을 하는 Long입니다. 이 색인은 0부터 시작되므로, 콜렉션의 첫 번째 항목 번호는 1이 아니라 0입니다.
- name
- 콜렉션에 대한 키로 사용되는 문자열.
이 문자열은 필요한 Attachment 오브젝트의 값에 해당합니다.
- Return value
- 콜렉션의 지정된 위치에 있는 Attachment 오브젝트.
예제
VBScript
' This example assumes there is at least 1 attachment field
' associated with the record.
set currentSession = GetSession set attachFields = AttachmentFields
set attachField1 = attachFields.Item(0)
set theAttachments = attachField1.Attachments
firstAttachment = theAttachments.Item(0)