WebDavSession.AllowWriteStreamBuffering Property

IT Hit WebDAV for .NET

Gets or sets a value that indicates whether to buffer the data sent to server.

[Visual Basic]
NotOverridable Public Property AllowWriteStreamBuffering As Boolean _
    Implements IConnectionSettings.AllowWriteStreamBuffering
[C#]
public bool AllowWriteStreamBuffering {get; set;}

Property Value

Boolean value indicting if data will be buffered non client side. Default is true.

Implements

IConnectionSettings.AllowWriteStreamBuffering

Example

The following example demonstrates how to upload a file from local file system to a WebDAV server.

                
string license = "<?xml version='1.0' encoding='utf...
WebDavSession session = new WebDavSession(license);
session.Credentials = new NetworkCredential("User1", "pwd");
IFolder folder = session.OpenFolder(new Uri("http://server:8080/Sales"));

IResource resource = folder.CreateResource("products.xlsx");
resource.AllowWriteStreamBuffering = false;
resource.TimeOut = 36000000; // 10 hours
resource.Upload("C:\\products.xlsx");
                
            

See Also

WebDavSession Class | ITHit.WebDAV.Client Namespace