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
- ObjectDisposedException.cs
- BmpBitmapEncoder.cs
- Zone.cs
- CodeTypeParameter.cs
- PropertyMap.cs
- StretchValidation.cs
- TableCellCollection.cs
- VisualStateGroup.cs
- DataGridViewColumn.cs
- UserControl.cs
- RepeatButton.cs
- XmlSchemaInferenceException.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CachedPathData.cs
- WhileDesigner.xaml.cs
- EdmScalarPropertyAttribute.cs
- COM2ExtendedUITypeEditor.cs
- CompilationUnit.cs
- BevelBitmapEffect.cs
- RoleService.cs
- WindowsToolbarAsMenu.cs
- InputManager.cs
- FunctionDetailsReader.cs
- SafeNativeMethods.cs
- DependencyObject.cs
- LateBoundChannelParameterCollection.cs
- ConstraintEnumerator.cs
- SubordinateTransaction.cs
- PerfCounters.cs
- CodeTypeOfExpression.cs
- TextTreeObjectNode.cs
- HitTestDrawingContextWalker.cs
- FlowPosition.cs
- WindowsSpinner.cs
- DataSourceXmlSerializationAttribute.cs
- PathNode.cs
- TemplateBindingExtension.cs
- ExceptionUtil.cs
- SqlNotificationRequest.cs
- ResourceAssociationSet.cs
- QueryCacheManager.cs
- DescriptionAttribute.cs
- EncoderExceptionFallback.cs
- MenuAutomationPeer.cs
- Rotation3DKeyFrameCollection.cs
- QueryableFilterRepeater.cs
- ParserContext.cs
- GetLedgerEntryForRecipientRequest.cs
- SHA256Managed.cs
- SystemDropShadowChrome.cs
- WebControlAdapter.cs
- Dynamic.cs
- XmlJsonReader.cs
- RequestCacheEntry.cs
- DataGridRowHeader.cs
- SerializerProvider.cs
- __Filters.cs
- Filter.cs
- XmlChildNodes.cs
- Frame.cs
- _TimerThread.cs
- _ServiceNameStore.cs
- TypedTableBase.cs
- RotateTransform.cs
- AudioFileOut.cs
- TypeNameConverter.cs
- XmlSchemaGroupRef.cs
- DES.cs
- ServiceHost.cs
- FixedSOMTableRow.cs
- ToolBar.cs
- DateTimeParse.cs
- CallSiteBinder.cs
- RequiredFieldValidator.cs
- Emitter.cs
- CompiledAction.cs
- XPathItem.cs
- MsmqIntegrationReceiveParameters.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- CodeCatchClause.cs
- ListViewInsertedEventArgs.cs
- CacheDict.cs
- FunctionUpdateCommand.cs
- EventMappingSettings.cs
- RegexMatch.cs
- ToolStripPanelRenderEventArgs.cs
- RoleManagerModule.cs
- ValidationEventArgs.cs
- SymLanguageType.cs
- StateMachine.cs
- BoundColumn.cs
- ParameterReplacerVisitor.cs
- SizeAnimation.cs
- PresentationAppDomainManager.cs
- MouseEventArgs.cs
- DesignerActionGlyph.cs
- Property.cs
- SerializerWriterEventHandlers.cs
- BufferModesCollection.cs
- Win32Exception.cs