Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / SendingRequestEventArgs.cs / 1 / SendingRequestEventArgs.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Event args for the event fired before executing a web request. Gives a // chance to customize or replace the request object to be used. // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Net; ////// Event args for the event fired before executing a web request. Gives a /// chance to customize or replace the request object to be used. /// public class SendingRequestEventArgs : EventArgs { ///The web request reported through this event private WebRequest request; ////// Constructor /// /// The request reported through this event internal SendingRequestEventArgs(WebRequest request) { this.request = request; } ///The web request reported through this event. The handler may modify or replace it. public WebRequest Request { get { return this.request; } set { Util.CheckArgumentNull(value, "value"); if (!(value is HttpWebRequest)) { throw Error.Argument(Strings.Context_SendingRequestEventArgsNotHttp, "value"); } this.request = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Event args for the event fired before executing a web request. Gives a // chance to customize or replace the request object to be used. // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Net; ////// Event args for the event fired before executing a web request. Gives a /// chance to customize or replace the request object to be used. /// public class SendingRequestEventArgs : EventArgs { ///The web request reported through this event private WebRequest request; ////// Constructor /// /// The request reported through this event internal SendingRequestEventArgs(WebRequest request) { this.request = request; } ///The web request reported through this event. The handler may modify or replace it. public WebRequest Request { get { return this.request; } set { Util.CheckArgumentNull(value, "value"); if (!(value is HttpWebRequest)) { throw Error.Argument(Strings.Context_SendingRequestEventArgsNotHttp, "value"); } this.request = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlUTF8TextReader.cs
- TypographyProperties.cs
- HttpServerUtilityWrapper.cs
- XmlImplementation.cs
- GuidelineCollection.cs
- EntryPointNotFoundException.cs
- ExeConfigurationFileMap.cs
- HybridDictionary.cs
- CustomLineCap.cs
- DependencyPropertyValueSerializer.cs
- NameTable.cs
- DataControlImageButton.cs
- MulticastOption.cs
- XmlAnyElementAttribute.cs
- WebBrowser.cs
- AdobeCFFWrapper.cs
- RunClient.cs
- InstallerTypeAttribute.cs
- EventLog.cs
- DetailsViewDeletedEventArgs.cs
- RegexWriter.cs
- ConfigUtil.cs
- BrowsableAttribute.cs
- TextEndOfSegment.cs
- InputGestureCollection.cs
- UpdateException.cs
- GridViewColumn.cs
- SqlConnectionFactory.cs
- MultipartIdentifier.cs
- EventListenerClientSide.cs
- CancellationHandlerDesigner.cs
- HttpProfileGroupBase.cs
- BitmapCacheBrush.cs
- DataSourceGeneratorException.cs
- WindowsListView.cs
- AuthStoreRoleProvider.cs
- ProcessInfo.cs
- CharacterBuffer.cs
- DetailsViewPageEventArgs.cs
- MetadataImporterQuotas.cs
- ImportException.cs
- BitmapCacheBrush.cs
- GeometryHitTestResult.cs
- DataPagerField.cs
- AsyncResult.cs
- IgnoreSection.cs
- Rect.cs
- ITextView.cs
- SID.cs
- FormsAuthenticationModule.cs
- WpfGeneratedKnownProperties.cs
- DummyDataSource.cs
- FixedSOMGroup.cs
- selecteditemcollection.cs
- MethodToken.cs
- PenCursorManager.cs
- SafeBitVector32.cs
- DataListDesigner.cs
- TypedTableGenerator.cs
- WebBrowserNavigatingEventHandler.cs
- CompositeCollection.cs
- TextRange.cs
- SaveFileDialog.cs
- TerminatorSinks.cs
- MethodBody.cs
- ControlCollection.cs
- precedingsibling.cs
- ControlEvent.cs
- ParseNumbers.cs
- ConfigsHelper.cs
- DSACryptoServiceProvider.cs
- ClickablePoint.cs
- AsyncResult.cs
- dbenumerator.cs
- IPipelineRuntime.cs
- SoapEnumAttribute.cs
- ExpressionPrinter.cs
- TextWriter.cs
- TextStore.cs
- Propagator.JoinPropagator.cs
- grammarelement.cs
- DataControlPagerLinkButton.cs
- DispatchChannelSink.cs
- AxisAngleRotation3D.cs
- BigInt.cs
- XmlDataImplementation.cs
- RadioButtonBaseAdapter.cs
- WeakEventManager.cs
- ColorTransform.cs
- ComUdtElementCollection.cs
- CodeNamespaceImportCollection.cs
- HttpProfileBase.cs
- HealthMonitoringSectionHelper.cs
- UnsafeNativeMethodsPenimc.cs
- ContextBase.cs
- QueryInterceptorAttribute.cs
- NotSupportedException.cs
- IPEndPoint.cs
- MediaElement.cs
- GatewayDefinition.cs