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