VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain.ImageUploading.Ftp Namespace / FtpUpload Class / AddFile Method
File name.
Stream with the data of the file field.




In This Topic
    AddFile Method (FtpUpload)
    In This Topic
    Adds file information to the FTP request.
    Syntax
    'Declaration
     
    Public Function AddFile( _
       ByVal fileName As String, _
       ByVal stream As Stream _
    ) As Boolean
    'Usage
     
    Dim instance As FtpUpload
    Dim fileName As String
    Dim stream As Stream
    Dim value As Boolean
     
    value = instance.AddFile(fileName, stream)
    public bool AddFile( 
       string fileName,
       Stream stream
    )
    public: bool AddFile( 
       string* fileName,
       Stream* stream
    ) 
    public:
    bool AddFile( 
       String^ fileName,
       Stream^ stream
    ) 

    Parameters

    fileName
    File name.
    stream
    Stream with the data of the file field.

    Return Value

    true if information about file was added successfully, false otherwise.
    Exceptions
    ExceptionDescription
    Thrown if file name or memory stream is null.
    Example
    Please see example here.
    Requirements

    Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also