UpdateCheck Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies when objects are to be tested for concurrency conflicts.
public enum class UpdateCheck
public enum UpdateCheck
type UpdateCheck =
Public Enum UpdateCheck
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Always | 0 | Always check. This is the default unless IsVersion is |
Never | 1 | Never check. |
WhenChanged | 2 | Check only when the object has been changed. |
Examples
[Column(Storage="_HomePage", DbType="NText", UpdateCheck=UpdateCheck.Never)]
public string HomePage
{
get
{
return this._HomePage;
}
set
{
if ((this._HomePage != value))
{
this.OnHomePageChanging(value);
this.SendPropertyChanging();
this._HomePage = value;
this.SendPropertyChanged("HomePage");
this.OnHomePageChanged();
}
}
}
<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
Remarks
The code example after the table specifies that HomePage
objects should never be tested.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.