Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Refreshes object state by using data in the database.
Refresh(RefreshMode, IEnumerable) |
Refreshes a collection of entity objects according to the specified mode. |
Refresh(RefreshMode, Object) |
Refreshes an entity object according to the specified mode. |
Refresh(RefreshMode, Object[]) |
Refreshes an array of entity objects according to the specified mode. |
This method is useful after an optimistic concurrency error to bring items into a state for another attempt. It updates the state of the primitive fields and properties on the objects.
Note
If an object is on the many side of a one-to-many relationship, the foreign key on the object will be set and the object pointer for the other side of the relationship will be set to the new value.
Refreshes a collection of entity objects according to the specified mode.
public:
void Refresh(System::Data::Linq::RefreshMode mode, System::Collections::IEnumerable ^ entities);
public void Refresh(System.Data.Linq.RefreshMode mode, System.Collections.IEnumerable entities);
member this.Refresh : System.Data.Linq.RefreshMode * System.Collections.IEnumerable -> unit
Public Sub Refresh (mode As RefreshMode, entities As IEnumerable)
A value that specifies how optimistic concurrency conflicts are handled.
The collection of entities to be refreshed.
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Refreshes an entity object according to the specified mode.
public:
void Refresh(System::Data::Linq::RefreshMode mode, System::Object ^ entity);
public void Refresh(System.Data.Linq.RefreshMode mode, object entity);
member this.Refresh : System.Data.Linq.RefreshMode * obj -> unit
Public Sub Refresh (mode As RefreshMode, entity As Object)
A value that specifies how optimistic concurrency conflicts are handled.
The object to be refreshed.
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Refreshes an array of entity objects according to the specified mode.
public:
void Refresh(System::Data::Linq::RefreshMode mode, ... cli::array <System::Object ^> ^ entities);
public void Refresh(System.Data.Linq.RefreshMode mode, params object[] entities);
member this.Refresh : System.Data.Linq.RefreshMode * obj[] -> unit
Public Sub Refresh (mode As RefreshMode, ParamArray entities As Object())
A value that specifies how optimistic concurrency conflicts are handled.
The array of entity objects to be refreshed.
Product | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Please sign in to use this experience.
Sign in