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
- ClientScriptManager.cs
- SHA512Managed.cs
- ContentControl.cs
- DispatchWrapper.cs
- Domain.cs
- GeometryValueSerializer.cs
- GenericUriParser.cs
- State.cs
- SqlRemoveConstantOrderBy.cs
- LayoutTable.cs
- TextServicesHost.cs
- IPeerNeighbor.cs
- XmlSchemaAttributeGroupRef.cs
- TypeNameConverter.cs
- XPathArrayIterator.cs
- VScrollBar.cs
- ImportFileRequest.cs
- InnerItemCollectionView.cs
- BindingNavigator.cs
- RegisteredHiddenField.cs
- TokenizerHelper.cs
- CodeDomDecompiler.cs
- HScrollProperties.cs
- CodeAttributeDeclaration.cs
- RandomNumberGenerator.cs
- IndexedString.cs
- TextRangeEditTables.cs
- PropertyEntry.cs
- xml.cs
- CookieParameter.cs
- UidManager.cs
- ConfigXmlElement.cs
- HtmlTableCell.cs
- TableMethodGenerator.cs
- TemplateColumn.cs
- NamespaceInfo.cs
- _IPv4Address.cs
- DefaultExpressionVisitor.cs
- DiscoveryServerProtocol.cs
- DefaultSerializationProviderAttribute.cs
- TypeSemantics.cs
- MulticastDelegate.cs
- PlatformNotSupportedException.cs
- BitSet.cs
- SqlUnionizer.cs
- ToolStripStatusLabel.cs
- MenuItemCollection.cs
- dtdvalidator.cs
- TypeResolver.cs
- NameScopePropertyAttribute.cs
- CriticalFinalizerObject.cs
- StyleHelper.cs
- EmptyStringExpandableObjectConverter.cs
- DataSourceComponent.cs
- SendKeys.cs
- CodeVariableReferenceExpression.cs
- EnumerableWrapperWeakToStrong.cs
- DateTimeConverter2.cs
- ExpressionLink.cs
- ObjectConverter.cs
- XsltContext.cs
- Soap12ProtocolReflector.cs
- DependencyStoreSurrogate.cs
- TrackingProfile.cs
- PersonalizationState.cs
- TabRenderer.cs
- AllMembershipCondition.cs
- CommandDevice.cs
- UnorderedHashRepartitionStream.cs
- HttpRequest.cs
- LocationSectionRecord.cs
- Line.cs
- Decoder.cs
- HtmlToClrEventProxy.cs
- SiteMap.cs
- ContextQuery.cs
- SQLMembershipProvider.cs
- versioninfo.cs
- UpWmlMobileTextWriter.cs
- DateTimeUtil.cs
- HandlerFactoryWrapper.cs
- SafeTimerHandle.cs
- NavigationHelper.cs
- TextShapeableCharacters.cs
- TraceInternal.cs
- OdbcFactory.cs
- HtmlTableRow.cs
- GridViewEditEventArgs.cs
- AssemblyBuilder.cs
- BasePropertyDescriptor.cs
- Utils.cs
- DialogResultConverter.cs
- SQLBytes.cs
- Drawing.cs
- RowTypePropertyElement.cs
- HashCodeCombiner.cs
- AppearanceEditorPart.cs
- UIInitializationException.cs
- AgileSafeNativeMemoryHandle.cs
- PersonalizationProvider.cs