다음을 통해 공유


DataContext.ObjectTrackingEnabled Property

Gets or sets a value that indicates whether changes in objects are tracked.

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

Syntax

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

value = instance.ObjectTrackingEnabled

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

Property Value

Type: System.Boolean
true, if changes are tracked; false otherwise.

Remarks

Changes cannot be persisted to the content database if this property is false.

For best performance with queries, set ObjectTrackingEnabled to false.

See Also

Reference

DataContext Class

DataContext Members

Microsoft.SharePoint.Linq Namespace