Creates a stream to the attachment file binary data.
Public Function CreateAttachmentStream(
ByVal attachmentNumber As Integer,
ByVal cache As ObjectCache
) As Stream
1-based attachment number in this LEADDocument. This DocumentAttachments collection must contain an item with DocumentAttachment.AttachmentNumber equal to this value, otherwise an exception is thrown.
Cache object to use. This is optional, see the Remarks section.
Stream to the attachment file binary data if successful; otherwise, null. The application program must close (dispose) the stream after use.
CreateAttachmentStream works as follows:
In all cases, it is the application program's responsibility to dispose the stream returned by this method.
For more information, refer to Document Attachments.
For an example, refer to DocumentAttachment.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries