Click or drag to resize

IDocumentApi Methods

The IDocumentApi type exposes the following members.

Methods
  NameDescription
Public methodCreate
Create new empty document with a given file name.
Public methodDelete
Delete a document.
Public methodGetMalwareScanStatus
Get the malware scan status of a given document. If the antimalware feature is enabled, then return the status based on the scanning result. Otherwise, always return the Cleaned status.
Public methodIsFileExisted
Check a document is existed.
Public methodOpenRead
Open a document for reading.
Public methodOpenWrite
Open a document for writing.
Public methodReadAllBytes
Reads the contents of the file into a byte array.
Public methodReadToStream
Reads the contents of a blob to a stream.
Public methodRequestMalwareScanning
Manually make a file scan request for a specific document.
Public methodShare
Share document
Public methodStore(DocumentInfo, Byte)
Stores document with a byte array. If the document already exists, it will be overwritten.
Public methodStore(DocumentInfo, Stream)
Stores document with a stream. If the document already exists, it will be overwritten.
Public methodUnshare
Deactivate the token
Top
See Also