VintaSoft Twain .NET SDK v10.2
Vintasoft.WpfTwain.ImageUploading.Http Namespace / HttpUpload Class / AddFileField Method
Field name.
Field value.
Stream with the data of the file field.




In This Topic
    AddFileField Method (HttpUpload)
    In This Topic
    Adds file field information to the POST request.
    Syntax
    'Declaration
     
    Public Function AddFileField( _
       ByVal fieldName As String, _
       ByVal fieldValue As String, _
       ByVal stream As Stream _
    ) As Boolean
    'Usage
     
    Dim instance As HttpUpload
    Dim fieldName As String
    Dim fieldValue As String
    Dim stream As Stream
    Dim value As Boolean
     
    value = instance.AddFileField(fieldName, fieldValue, stream)
    public bool AddFileField( 
       string fieldName,
       string fieldValue,
       Stream stream
    )
    public: bool AddFileField( 
       string* fieldName,
       string* fieldValue,
       Stream* stream
    ) 
    public:
    bool AddFileField( 
       String^ fieldName,
       String^ fieldValue,
       Stream^ stream
    ) 

    Parameters

    fieldName
    Field name.
    fieldValue
    Field value.
    stream
    Stream with the data of the file field.

    Return Value

    true if information about file field was added to the POST request successfully; otherwise, false.
    Exceptions
    ExceptionDescription
    Thrown if fieldName, fieldValue or 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