Share via


DataContext.DeferredLoadingEnabled property

Gets or sets a value indicating whether the LINQ to SharePoint provider should allow delay loading of EntityRef<TEntity> and EntitySet<TEntity> objects.

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

Syntax

'Declaration
Public Property DeferredLoadingEnabled As Boolean
    Get
    Set
'Usage
Dim instance As DataContext
Dim value As Boolean

value = instance.DeferredLoadingEnabled

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

Property value

Type: System.Boolean
true, if delayed loading should be used; false otherwise. The default is true.

Remarks

If DeferredLoadingEnabled is false, then all EntityRef<TEntity> and EntitySet<TEntity> objects are always a null reference (Nothing in Visual Basic).

See also

Reference

DataContext class

DataContext members

Microsoft.SharePoint.Linq namespace