Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AccessDataSourceWizardForm.cs
- LicenseProviderAttribute.cs
- DSACryptoServiceProvider.cs
- ContainsSearchOperator.cs
- ListCollectionView.cs
- DispatchWrapper.cs
- SHA256.cs
- EventHandlerList.cs
- DrawingCollection.cs
- IQueryable.cs
- ListViewGroup.cs
- QilUnary.cs
- GradientSpreadMethodValidation.cs
- ControlAdapter.cs
- CalculatedColumn.cs
- safesecurityhelperavalon.cs
- UserMapPath.cs
- ToolStripEditorManager.cs
- QilTypeChecker.cs
- TogglePattern.cs
- TemplatedMailWebEventProvider.cs
- ProjectionCamera.cs
- Registry.cs
- RelationshipEndMember.cs
- HttpConfigurationContext.cs
- TypeReference.cs
- Int64Storage.cs
- LinqDataSourceDeleteEventArgs.cs
- ContentIterators.cs
- DataGridViewRowsRemovedEventArgs.cs
- ellipse.cs
- ILGenerator.cs
- X509RawDataKeyIdentifierClause.cs
- KeyValuePairs.cs
- AccessDataSourceView.cs
- XamlPoint3DCollectionSerializer.cs
- EntityWrapper.cs
- XsdDuration.cs
- PrintingPermission.cs
- XmlSchemaAttribute.cs
- ViewEvent.cs
- DesignerSerializerAttribute.cs
- clipboard.cs
- FileRegion.cs
- _BufferOffsetSize.cs
- HandleRef.cs
- ChangePassword.cs
- AttachedPropertyMethodSelector.cs
- GeneralTransform2DTo3DTo2D.cs
- Message.cs
- TypeForwardedToAttribute.cs
- SevenBitStream.cs
- ActivityExecutionFilter.cs
- Hash.cs
- LessThanOrEqual.cs
- ArithmeticException.cs
- GlyphRunDrawing.cs
- ParameterEditorUserControl.cs
- ValueProviderWrapper.cs
- ExpressionHelper.cs
- SimpleModelProvider.cs
- LocalizabilityAttribute.cs
- CachedFontFace.cs
- ConstructorBuilder.cs
- DataRecordInternal.cs
- InstalledFontCollection.cs
- ObjectItemNoOpAssemblyLoader.cs
- FormViewCommandEventArgs.cs
- WebBaseEventKeyComparer.cs
- OutputCacheSettings.cs
- ComponentResourceManager.cs
- WindowsRichEditRange.cs
- StylusSystemGestureEventArgs.cs
- OpenFileDialog.cs
- SqlServer2KCompatibilityCheck.cs
- MarshalByRefObject.cs
- FocusWithinProperty.cs
- SelectionChangedEventArgs.cs
- IdentityNotMappedException.cs
- ClaimSet.cs
- SHA256Managed.cs
- MenuBase.cs
- UnsafeNativeMethods.cs
- CommonDialog.cs
- HttpWrapper.cs
- GAC.cs
- SafeJobHandle.cs
- ScrollBar.cs
- Rotation3D.cs
- Converter.cs
- Calendar.cs
- ResourceDictionaryCollection.cs
- DBConnection.cs
- PropertyNames.cs
- pingexception.cs
- AssemblyEvidenceFactory.cs
- QilLiteral.cs
- CodeCommentStatementCollection.cs
- EventLogEntry.cs
- Int32Collection.cs