OverwriteExistingFiles Property

Summary

Gets or sets a value that indicate whether to overwrite the existing item if it exists when uploading to SharePoint server.

Syntax
C#
VB
C++
public bool OverwriteExistingFiles { get; set; } 
  
Public Property OverwriteExistingFiles As Boolean 
public: 
property bool OverwriteExistingFiles { 
   bool get(); 
   void set (    bool ); 
} 

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

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.