Click or drag to resize

IDocumentApi Methods

The IDocumentApi type exposes the following members.

Methods
  Name Description
Public method Create Create new empty document with a given file name.
Public method Delete Delete a document.
Public method GetMalwareScanStatus 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 method IsFileExisted Check a document is existed.
Public method OpenRead Open a document for reading.
Public method OpenWrite Open a document for writing.
Public method ReadAllBytes Reads the contents of the file into a byte array.
Public method ReadToStream Reads the contents of a blob to a stream.
Public method RequestMalwareScanning Manually make a file scan request for a specific document.
Public method Share Share document
Public method Store(DocumentInfo, Byte) Stores document with a byte array. If the document already exists, it will be overwritten.
Public method Store(DocumentInfo, Stream) Stores document with a stream. If the document already exists, it will be overwritten.
Public method Unshare Deactivate the token
Top
See Also