LEADTOOLS SharePoint Client (Leadtools.SharePoint.Client assembly)
LEAD Technologies, Inc

OverwriteExistingFiles Property






Gets or sets a value that indicate whether to overwrite the existing item if it exists when uploading to SharePoint server.
Syntax
public bool OverwriteExistingFiles {get; set;}
'Declaration
 
Public Property OverwriteExistingFiles As Boolean
'Usage
 
Dim instance As SharePointClient
Dim value As Boolean
 
instance.OverwriteExistingFiles = value
 
value = instance.OverwriteExistingFiles
public bool OverwriteExistingFiles {get; set;}
 get_OverwriteExistingFiles();
set_OverwriteExistingFiles(value);
public:
property bool OverwriteExistingFiles {
   bool get();
   void set (    bool value);
}

Property Value

true to overwrite the existing item if it exists when uploading to SharePoint server, otherwise; false. Default value is true.
Remarks

If the value of OverwriteExistingFiles is false and item with same name as the uploaded item already exists in the SharePoint server folder, an exception will be thrown.

If the value of OverwriteExistingFiles is true and item with same name as the uploaded item already exists in the SharePoint server folder, then the existing item will be overwritten.

Example

For an example, refer to SharePointClient.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SharePointClient Class
SharePointClient Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.