←Select platform

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.