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
- Mutex.cs
- EntityDataSourceStatementEditorForm.cs
- DataGridRowDetailsEventArgs.cs
- TextEditorCharacters.cs
- MaterialCollection.cs
- COM2IDispatchConverter.cs
- oledbmetadatacolumnnames.cs
- SqlUserDefinedTypeAttribute.cs
- CachedFontFace.cs
- PageClientProxyGenerator.cs
- XpsColorContext.cs
- InputScopeAttribute.cs
- SoapWriter.cs
- CodeAccessPermission.cs
- DoWorkEventArgs.cs
- RotateTransform.cs
- RectangleGeometry.cs
- ReadOnlyDictionary.cs
- SafeNativeMethods.cs
- ObjectPersistData.cs
- CodeMethodInvokeExpression.cs
- ArrayElementGridEntry.cs
- RequestCachingSection.cs
- AnimationClock.cs
- SafeNativeMethods.cs
- CancellationHandler.cs
- ActivityDesignerAccessibleObject.cs
- log.cs
- EditorZoneAutoFormat.cs
- SafeHGlobalHandleCritical.cs
- ObjRef.cs
- ScrollEvent.cs
- BitmapCacheBrush.cs
- SchemaAttDef.cs
- Context.cs
- DBCommand.cs
- MessageSecurityException.cs
- SingleAnimationBase.cs
- XPathDocumentNavigator.cs
- PerformanceCounter.cs
- ConstNode.cs
- LinqTreeNodeEvaluator.cs
- DataServiceConfiguration.cs
- XmlSchemas.cs
- DragCompletedEventArgs.cs
- GlyphInfoList.cs
- OdbcRowUpdatingEvent.cs
- DataPagerCommandEventArgs.cs
- AdornerLayer.cs
- Utility.cs
- XmlAttributeOverrides.cs
- TableItemProviderWrapper.cs
- DataGridViewCheckBoxColumn.cs
- GenericWebPart.cs
- FacetChecker.cs
- DataObject.cs
- FamilyMapCollection.cs
- DetailsViewPageEventArgs.cs
- GeometryDrawing.cs
- ServiceObjectContainer.cs
- ListView.cs
- _NTAuthentication.cs
- SerialStream.cs
- GroupBoxAutomationPeer.cs
- TextRenderingModeValidation.cs
- PointConverter.cs
- QilInvokeLateBound.cs
- SoundPlayer.cs
- DataGridLinkButton.cs
- TextSelectionHighlightLayer.cs
- AssociationType.cs
- CapabilitiesSection.cs
- OleDbStruct.cs
- LinkedResourceCollection.cs
- WebPartHelpVerb.cs
- Expression.DebuggerProxy.cs
- DecimalConstantAttribute.cs
- TrailingSpaceComparer.cs
- FormatVersion.cs
- SoapClientMessage.cs
- RelationshipEnd.cs
- PersonalizationStateInfo.cs
- TabletDevice.cs
- BufferedWebEventProvider.cs
- XmlAttributeProperties.cs
- HttpListenerRequest.cs
- BaseParagraph.cs
- SkewTransform.cs
- LabelEditEvent.cs
- ApplicationServiceManager.cs
- DataColumnPropertyDescriptor.cs
- ViewBase.cs
- WebPartTransformerAttribute.cs
- CryptoHelper.cs
- ObjectReferenceStack.cs
- COM2TypeInfoProcessor.cs
- Confirm.cs
- CompilerCollection.cs
- Activity.cs
- AsyncDataRequest.cs