Downloads a specific version of a document in byte array format.

Syntax

Visual Basic (declaration)
Public Function DownloadDocumentVersion( _ 
ByVal AuthenticationTicket as String, _ ByVal Path as String, _ ByVal VersionNumber as Integer) as Byte()

C# (declaration)
public byte[] DownloadDocumentVersion( 
string AuthenticationTicket, string Path, int VersionNumber)

Parameters

AuthenticationTicket
    string infoRouter ticket
Path
    string A document path in the infoRouter to be downloaded.
VersionNumber
    int Version Number that will be downloaded

Return Value

Returns the content of the document in a byte array.

Remarks

The caller must be the owner of the document or must have at least "Read" permissions on the document.
If this function returns zero (0) bytes then call the function "GetDownloadInfo" to get the error description.