Share via


SPFileCollectionAddParameters.Overwrite property

Gets or sets a value that specifies whether to overwrite a file that has the same name.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property Overwrite As Boolean
    Get
    Set
'Usage
Dim instance As SPFileCollectionAddParameters
Dim value As Boolean

value = instance.Overwrite

instance.Overwrite = value
public bool Overwrite { get; set; }

Property value

Type: System.Boolean
true to overwrite a file that has the same name; otherwise, false.

See also

Reference

SPFileCollectionAddParameters class

SPFileCollectionAddParameters members

Microsoft.SharePoint namespace