←Select platform

Data Property

Summary

Buffer to read the data into during this download operation.

Syntax
C#
VB
C++
public byte[] Data { get; set; } 
Public Property Data() As Byte() 
   Get 
   Set 
public:  
   property array<Byte>^ Data 
   { 
      array<Byte>^ get() 
      void set(array<Byte>^ value) 
   } 

Property Value

Buffer to read the document data to. The default value is null.

Remarks

To download a document from the cache, use either Data or Stream, but not both. In other words, one of these properties must be set to a non-null value to indicate the target for the download operation.

When Data is used, then DataOffset is the 0-based byte offset into Data, at which to begin storing the data.

DataOffset is the 0-based byte offset into the source data at which to begin reading the data.

Length is the maximum number of bytes to read. This value must be greater than or equal to the size of the Data buffer. If a value of -1 is used, then reading will be performed until the end is reached, and Data must be large enough to hold all the bytes.

Example

For an example, refer to DocumentFactory.DownloadDocument.

Requirements

Target Platforms

Help Version 20.0.2019.9.19
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly