VintaSoft Twain .NET SDK v10.2
AllowAutoRedirect Property (HttpUpload)




Vintasoft.WpfTwain.ImageUploading.Http Namespace > HttpUpload Class : AllowAutoRedirect Property
Gets or sets a value that indicates whether the request should follow redirection responses.
Syntax
'Declaration
 
Public Property AllowAutoRedirect As Boolean
'Usage
 
Dim instance As HttpUpload
Dim value As Boolean
 
instance.AllowAutoRedirect = value
 
value = instance.AllowAutoRedirect
public bool AllowAutoRedirect {get; set;}
public: __property bool get_AllowAutoRedirect();
public: __property void set_AllowAutoRedirect( 
   bool value
);
public:
property bool AllowAutoRedirect {
   bool get();
   void set (    bool value);
}

Property Value

true if the request should automatically follow redirection responses from the Internet resource; otherwise false. Default value is true.
Remarks
Set AllowAutoRedirect to true if you want redirect the request automatically to the new location of the resource. The maximum number of redirections can be set with the MaximumAutomaticRedirections property.

If AllowAutoRedirect is set to false all responses with an HTTP status code from 300 to 399 will be returned to the application.
Requirements

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

See Also

Reference

HttpUpload Class
HttpUpload Members