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
- Barrier.cs
- GetReadStreamResult.cs
- DispatcherProcessingDisabled.cs
- LayoutEvent.cs
- XmlObjectSerializerReadContext.cs
- CodePageEncoding.cs
- WebReferencesBuildProvider.cs
- XmlTextReaderImpl.cs
- SecurityTokenValidationException.cs
- PipeSecurity.cs
- EntityDataSourceContainerNameItem.cs
- DataRecord.cs
- HtmlGenericControl.cs
- KerberosSecurityTokenAuthenticator.cs
- PrincipalPermission.cs
- PersonalizationStateInfoCollection.cs
- FieldToken.cs
- SyndicationSerializer.cs
- SignatureToken.cs
- ToolStripOverflow.cs
- SqlInternalConnectionSmi.cs
- LocatorPartList.cs
- DataObjectEventArgs.cs
- MD5CryptoServiceProvider.cs
- ObjectStateEntry.cs
- XamlWriter.cs
- WindowsRichEdit.cs
- ReadOnlyAttribute.cs
- DataGridViewCellLinkedList.cs
- TranslateTransform3D.cs
- FloatSumAggregationOperator.cs
- InvalidOperationException.cs
- UInt32Converter.cs
- PropertyPathConverter.cs
- BuildProvidersCompiler.cs
- SafeCryptoHandles.cs
- ScrollBar.cs
- AppSettingsSection.cs
- TransactionFilter.cs
- ReadOnlyHierarchicalDataSource.cs
- AnchoredBlock.cs
- BindingOperations.cs
- SupportingTokenDuplexChannel.cs
- Model3DGroup.cs
- DataGridTextBoxColumn.cs
- DataGridItemAttachedStorage.cs
- DataTableMapping.cs
- UiaCoreTypesApi.cs
- WebReferencesBuildProvider.cs
- HttpContextWrapper.cs
- Vars.cs
- CategoryAttribute.cs
- OracleDataAdapter.cs
- ScriptServiceAttribute.cs
- KeyboardEventArgs.cs
- Environment.cs
- AnonymousIdentificationModule.cs
- HttpHeaderCollection.cs
- DetailsViewInsertedEventArgs.cs
- TypeForwardedToAttribute.cs
- ValueTable.cs
- XamlToRtfParser.cs
- OrCondition.cs
- ValidatedControlConverter.cs
- Debug.cs
- ShaderRenderModeValidation.cs
- RoutedPropertyChangedEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- FileDialog.cs
- HttpStreamXmlDictionaryReader.cs
- AliasGenerator.cs
- XmlSchemaAttributeGroup.cs
- DataControlFieldCell.cs
- RequestCache.cs
- PreviewPageInfo.cs
- EntityDataSourceUtil.cs
- Page.cs
- _NTAuthentication.cs
- ActiveDocumentEvent.cs
- ToolStripRenderEventArgs.cs
- MultipartContentParser.cs
- StylusLogic.cs
- UdpDiscoveryEndpointElement.cs
- StylusEventArgs.cs
- MimeFormatExtensions.cs
- BrowserTree.cs
- UICuesEvent.cs
- DataGridViewIntLinkedList.cs
- MsmqSecureHashAlgorithm.cs
- MetadataPropertyCollection.cs
- HttpCacheVaryByContentEncodings.cs
- MailAddress.cs
- Membership.cs
- WebMessageFormatHelper.cs
- HtmlElementEventArgs.cs
- _SpnDictionary.cs
- HtmlLink.cs
- InstanceLockTracking.cs
- StylusCaptureWithinProperty.cs
- UTF32Encoding.cs