ISoapAttachments::Item Property (read-only)

[propget] HRESULT Item([in] long idx, [out, retval] ISoapAttachment ** attachment);

Accesses a particular attachment object from the collection. The index is zero based.

 

Return Values

returns the requested attachment or E_INVALIDARG, if the specified index is outside the bounds of the collection

 

Sample Code

dim mgr, a 
set mgr = CreateObject("PocketSOAP.Attachments")
...
e.parse mgr
wscript.echo "Response contains " & mgr.Response.Count & " attachments"
if mgr.Response.Count > 0 then
	set firstAttachment = mgr.Response.Item(0)
	wscript.echo firstAttachment.TypeName
end if

 

See Also

The ISoapAttachments Interface | 

 

 

Copyright

Copyright © Simon Fell, 2000-2004. All rights reserved.