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
- DictionaryMarkupSerializer.cs
- Events.cs
- CursorConverter.cs
- BitmapMetadataBlob.cs
- TypefaceMetricsCache.cs
- RegexGroup.cs
- DataFormat.cs
- ResolveCriteriaApril2005.cs
- ImmutablePropertyDescriptorGridEntry.cs
- XmlElementAttribute.cs
- ObjectRef.cs
- Cursor.cs
- ServiceBehaviorAttribute.cs
- SchemaInfo.cs
- PageContent.cs
- SqlInternalConnectionSmi.cs
- RecognizedWordUnit.cs
- Vector3D.cs
- AppSettingsExpressionEditor.cs
- DefinitionBase.cs
- RectKeyFrameCollection.cs
- ImageEditor.cs
- AsyncDataRequest.cs
- CLSCompliantAttribute.cs
- CompiledQuery.cs
- DataListItem.cs
- WindowsAltTab.cs
- Flattener.cs
- EditorBrowsableAttribute.cs
- SymbolPair.cs
- Fx.cs
- RootProjectionNode.cs
- BufferedStream2.cs
- HMAC.cs
- Transaction.cs
- Keywords.cs
- SeparatorAutomationPeer.cs
- TextBoxView.cs
- MessageDesigner.cs
- FlowLayoutPanel.cs
- AutomationPropertyInfo.cs
- DataGridItemCollection.cs
- DoubleIndependentAnimationStorage.cs
- SqlCharStream.cs
- RegexReplacement.cs
- MaskedTextProvider.cs
- BuildResultCache.cs
- SortFieldComparer.cs
- StylusPointDescription.cs
- SID.cs
- _BufferOffsetSize.cs
- XmlQueryCardinality.cs
- FaultCallbackWrapper.cs
- BitStream.cs
- ExpressionBinding.cs
- DetailsViewModeEventArgs.cs
- CapabilitiesSection.cs
- GenericArgumentsUpdater.cs
- InvokePattern.cs
- DoubleAnimationClockResource.cs
- StringUtil.cs
- IntSecurity.cs
- CompilerTypeWithParams.cs
- ColorConvertedBitmapExtension.cs
- SchemaNotation.cs
- PenLineCapValidation.cs
- CodeLinePragma.cs
- AstNode.cs
- QilList.cs
- UIPermission.cs
- SqlInternalConnection.cs
- Sorting.cs
- AddInEnvironment.cs
- InProcStateClientManager.cs
- SiteMapNode.cs
- TranslateTransform3D.cs
- ReferentialConstraintRoleElement.cs
- SqlClientWrapperSmiStreamChars.cs
- ButtonBase.cs
- codemethodreferenceexpression.cs
- RIPEMD160Managed.cs
- RadioButtonAutomationPeer.cs
- ZoneButton.cs
- ProxyWebPartConnectionCollection.cs
- ItemsPresenter.cs
- GridItemPattern.cs
- Grant.cs
- CodeAttributeDeclaration.cs
- Paragraph.cs
- Win32PrintDialog.cs
- AppearanceEditorPart.cs
- ErrorFormatterPage.cs
- XmlSchemaDatatype.cs
- x509utils.cs
- XmlDataSource.cs
- hebrewshape.cs
- XmlSerializationWriter.cs
- ReferenceService.cs
- SiteOfOriginContainer.cs
- TableHeaderCell.cs