DataServiceContext.WritingEntity Event

Definition

Occurs after an entity has been fully serialized into XML in a request message.

C#
public event EventHandler<System.Data.Services.Client.ReadingWritingEntityEventArgs> WritingEntity;

Event Type

Remarks

Handling the WritingEntity event enables you to change the XML in a request before it is sent.

The WritingEntity event may occur on a different thread when you call BeginSaveChanges(SaveChangesOptions, AsyncCallback, Object) without including Batch in the supplied SaveChangesOptions value.

Applies to

Proizvod Verzije
.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