DataServiceContext.SendingRequest 事件
已建立新的 HttpWebRequest 時發生。
命名空間: System.Data.Services.Client
組件: Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)
語法
'宣告
Public Event SendingRequest As EventHandler(Of SendingRequestEventArgs)
'用途
Dim instance As DataServiceContext
Dim handler As EventHandler(Of SendingRequestEventArgs)
AddHandler instance.SendingRequest, handler
public event EventHandler<SendingRequestEventArgs> SendingRequest
public:
event EventHandler<SendingRequestEventArgs^>^ SendingRequest {
void add (EventHandler<SendingRequestEventArgs^>^ value);
void remove (EventHandler<SendingRequestEventArgs^>^ value);
}
member SendingRequest : IEvent<EventHandler<SendingRequestEventArgs>,
SendingRequestEventArgs>
JScript 支援使用事件,但不支援新的宣告。
備註
在物件上設定必要屬性值之前,發生 SendingRequest 事件。