Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

IsDownloaded Property






Indicates if this document was downloaded.
Syntax
public bool IsDownloaded {get;}
'Declaration
 
Public ReadOnly Property IsDownloaded As Boolean
'Usage
 
Dim instance As Document
Dim value As Boolean
 
value = instance.IsDownloaded
public boolean isDownloaded()
            
public:
property bool IsDownloaded {
   bool get();
}

Property Value

true if this document was downloaded, otherwise; false.
Remarks

When a document is created using DocumentFactory.LoadFromUri or DocumentFactory.LoadFromUriAsync, the framework will download the original file and store it in the cache if it is used or a temporary file on the system otherwise. In these cases, the value of IsDownloaded will be true and GetDocumentFileName will return the path to this file (in the cache directly or the temporary one created). Uri will point to the original file or URL used to download the document.

If the document is created using DocumentFactory.LoadFromFile then the framework will not download the original file, instead, use it as is. In this case, the value of IsDownloaded will be false and GetDocumentFileName will return the path to the original file used to load the document. Uri will return the same value as GetDocumentFileName in this situation.

If the document is created using DocumentFactory.LoadFromStream, then the value of IsDownloaded will false. If the document is then saved into the cache and reloaded (using SaveToCache and DocumentFactory.LoadFromCache then the value of IsDownloaded will be true and the document is treated as it was loaded from a file.

Example

For an example, refer to Document.

Requirements

Target Platforms

See Also

Reference

Document Class
Document Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features