Compartilhar 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