SPQuery.IncludeMandatoryColumns Property

Gets or sets a Boolean value that specifies whether fields that are required for calculated fields are returned in the query. Mandatory columns include, for example, owsHiddenVersion, dependent fields, and required fields.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property IncludeMandatoryColumns As Boolean
    Get
    Set
'Usage
Dim instance As SPQuery
Dim value As Boolean

value = instance.IncludeMandatoryColumns

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

Property Value

Type: System.Boolean
true if required and dependent fields are returned; otherwise, false.

See Also

Reference

SPQuery Class

SPQuery Members

Microsoft.SharePoint Namespace