Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FontNamesConverter.cs
- DoubleCollectionConverter.cs
- XmlSerializationWriter.cs
- DataSourceUtil.cs
- Int16Converter.cs
- SkewTransform.cs
- ConsumerConnectionPoint.cs
- EnumCodeDomSerializer.cs
- XsdDuration.cs
- Metafile.cs
- DataGridViewComboBoxCell.cs
- CodeExpressionCollection.cs
- MarkedHighlightComponent.cs
- InvalidWMPVersionException.cs
- DataKey.cs
- PropagatorResult.cs
- InvokerUtil.cs
- DataGridViewBand.cs
- ValidationError.cs
- DeferredSelectedIndexReference.cs
- MenuItem.cs
- sqlpipe.cs
- MostlySingletonList.cs
- WebControl.cs
- XPathDocument.cs
- DataGridItemCollection.cs
- NonParentingControl.cs
- MonikerUtility.cs
- Rect.cs
- DependencyObjectValidator.cs
- TokenBasedSetEnumerator.cs
- Script.cs
- WaveHeader.cs
- ErrorWebPart.cs
- StringFreezingAttribute.cs
- UnhandledExceptionEventArgs.cs
- RectIndependentAnimationStorage.cs
- MessageDecoder.cs
- LabelLiteral.cs
- AsynchronousChannelMergeEnumerator.cs
- UnsafeNativeMethods.cs
- StickyNoteContentControl.cs
- DeviceContext.cs
- WeakReference.cs
- EUCJPEncoding.cs
- QilParameter.cs
- SmiTypedGetterSetter.cs
- EnumUnknown.cs
- EditorResources.cs
- XmlSchemaImporter.cs
- TopClause.cs
- Vector3D.cs
- GridViewDeletedEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- SQLByteStorage.cs
- RuntimeHelpers.cs
- UrlRoutingHandler.cs
- RepeaterItemEventArgs.cs
- BinaryKeyIdentifierClause.cs
- httpstaticobjectscollection.cs
- BaseProcessor.cs
- SiteMapDataSourceView.cs
- XmlUtil.cs
- SchemaTableOptionalColumn.cs
- ItemsControl.cs
- SystemPens.cs
- CodeAttributeDeclarationCollection.cs
- ToolStripComboBox.cs
- DataComponentNameHandler.cs
- RTLAwareMessageBox.cs
- DatePicker.cs
- _FixedSizeReader.cs
- SurrogateEncoder.cs
- WebPartMenu.cs
- ResourceSet.cs
- MasterPageCodeDomTreeGenerator.cs
- HttpModuleActionCollection.cs
- MatrixIndependentAnimationStorage.cs
- Matrix3D.cs
- LiteralControl.cs
- WorkflowNamespace.cs
- StructuralType.cs
- CompiledXpathExpr.cs
- Substitution.cs
- Renderer.cs
- FixedSOMImage.cs
- RectKeyFrameCollection.cs
- SynchronizedDispatch.cs
- Function.cs
- GridViewAutomationPeer.cs
- BackgroundFormatInfo.cs
- IndexedWhereQueryOperator.cs
- DataGridColumnCollection.cs
- SpotLight.cs
- UnmanagedBitmapWrapper.cs
- SchemaElement.cs
- FileVersionInfo.cs
- ByteFacetDescriptionElement.cs
- HandledMouseEvent.cs
- TransformGroup.cs