Creates a stream to the attachment file binary data.
public Stream CreateAttachmentStream(
int attachmentNumber,
ObjectCache cache
)
Public Function CreateAttachmentStream(
ByVal attachmentNumber As Integer,
ByVal cache As ObjectCache
) As Stream
public:
Stream^ CreateAttachmentStream(
Int32 attachmentNumber,
ObjectCache^ cache
)
attachmentNumber
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
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.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document