Share via


SPFileCollectionAddParameters.AutoCheckoutOnInvalidData property

Gets or sets a value that specifies whether to check the file out immediately after saving it if it has invalid data.

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

Syntax

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

value = instance.AutoCheckoutOnInvalidData

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

Property value

Type: System.Boolean
true to check the file out automatically on saving it if it has invalid lookup parents, fails unique column constraints, or fails list data validation; otherwise, false.

See also

Reference

SPFileCollectionAddParameters class

SPFileCollectionAddParameters members

Microsoft.SharePoint namespace