This documentation is archived and is not being maintained.

UpdateCheck Enumeration

Specifies when objects are to be tested for concurrency conflicts.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

'Declaration
Public Enumeration UpdateCheck
'Usage
Dim instance As UpdateCheck

Member nameDescription
AlwaysAlways check.
NeverNever check.
WhenChangedCheck only when the object has been changed.

The code example after the table specifies that HomePage objects should never be tested.

<Column(Storage:="_HomePage", DbType:="NText", UpdateCheck:=UpdateCheck.Never)>  _
Public Property HomePage() As String 
    Get 
        Return Me._HomePage
    End Get 
    Set(ByVal value As String)
        If ((Me._HomePage <> value)  _
            = false) Then 
	    Me.OnHomePageChanging(value)
            Me.SendPropertyChanging
            Me._HomePage = value
            Me.SendPropertyChanged("HomePage")
            Me.OnHomePageChanged
        End If 
    End Set 
End Property

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: