DataServiceContext.SendingRequest2 Event
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.
This event is fired before a request is sent to the server, giving the handler the opportunity to inspect, adjust and/or replace the WebRequest object used to perform the request.
public virtual event EventHandler<Microsoft.OData.Client.SendingRequest2EventArgs> SendingRequest2;
member this.SendingRequest2 : EventHandler<Microsoft.OData.Client.SendingRequest2EventArgs>
Public Overridable Event SendingRequest2 As EventHandler(Of SendingRequest2EventArgs)
Event Type
Remarks
When calling BeginSaveChanges and not using SaveChangesOptions.BatchWithSingleChangeset and SaveChangesOptions.BatchWithIndependentOperations, this event may be raised from a different thread.