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
- EngineSite.cs
- ProfileServiceManager.cs
- LicenseException.cs
- InputMethodStateTypeInfo.cs
- MenuEventArgs.cs
- Suspend.cs
- XamlFilter.cs
- OleDbFactory.cs
- ServiceModelDictionary.cs
- TargetConverter.cs
- TypeDependencyAttribute.cs
- QuerySettings.cs
- ValidatorCollection.cs
- TypeUnloadedException.cs
- SeparatorAutomationPeer.cs
- ReplyChannelAcceptor.cs
- RouteItem.cs
- CookieHandler.cs
- XmlDataDocument.cs
- WindowsAltTab.cs
- XamlTreeBuilder.cs
- OdbcParameter.cs
- ObjectDataSourceFilteringEventArgs.cs
- CodeExporter.cs
- _SslState.cs
- DrawingImage.cs
- RootAction.cs
- SQLRoleProvider.cs
- MenuItem.cs
- ErrorFormatter.cs
- DataGridViewComboBoxColumn.cs
- EFTableProvider.cs
- XPathArrayIterator.cs
- AudioFileOut.cs
- ComplexPropertyEntry.cs
- Assembly.cs
- Attributes.cs
- SettingsProviderCollection.cs
- SizeConverter.cs
- SettingsPropertyValueCollection.cs
- SimpleWebHandlerParser.cs
- Expr.cs
- FlowDocumentFormatter.cs
- XmlDocumentFragment.cs
- Geometry.cs
- MemberExpression.cs
- SessionPageStatePersister.cs
- AutomationPeer.cs
- PeerNameResolver.cs
- StringArrayConverter.cs
- ExtensionElement.cs
- BitmapSourceSafeMILHandle.cs
- AvtEvent.cs
- MessageQueueEnumerator.cs
- StructuredType.cs
- DnsPermission.cs
- TextUtf8RawTextWriter.cs
- SynchronizationLockException.cs
- EventProviderWriter.cs
- shaper.cs
- TreeNodeSelectionProcessor.cs
- TrackingRecord.cs
- CodeSnippetExpression.cs
- InfoCardCryptoHelper.cs
- WeakReferenceEnumerator.cs
- XmlSchemaSet.cs
- assertwrapper.cs
- NativeMethods.cs
- AuthenticationService.cs
- LocatorManager.cs
- SectionRecord.cs
- WCFServiceClientProxyGenerator.cs
- FlowPosition.cs
- BitmapEffect.cs
- InputLangChangeRequestEvent.cs
- controlskin.cs
- RuntimeIdentifierPropertyAttribute.cs
- ProfileService.cs
- Bidi.cs
- DelegateBodyWriter.cs
- DbReferenceCollection.cs
- BindingCollection.cs
- TemplateBindingExpression.cs
- TransformationRules.cs
- DataGridViewMethods.cs
- PropertyFilterAttribute.cs
- SqlError.cs
- ChineseLunisolarCalendar.cs
- EntityConnection.cs
- ConfigurationPropertyAttribute.cs
- ConnectivityStatus.cs
- WebPartConnectionsCancelVerb.cs
- ConnectorDragDropGlyph.cs
- InvalidateEvent.cs
- Delegate.cs
- TypedColumnHandler.cs
- TablePatternIdentifiers.cs
- CustomErrorsSectionWrapper.cs
- SystemWebSectionGroup.cs
- SspiSafeHandles.cs