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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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