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
- CacheSection.cs
- Overlapped.cs
- LowerCaseStringConverter.cs
- MarginCollapsingState.cs
- HitTestWithPointDrawingContextWalker.cs
- NullReferenceException.cs
- ManagementObjectSearcher.cs
- WebPartConnection.cs
- PlanCompiler.cs
- UnsignedPublishLicense.cs
- EntityDataSourceWrapperCollection.cs
- ParagraphVisual.cs
- SqlDataSourceSelectingEventArgs.cs
- PersonalizableTypeEntry.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ApplicationGesture.cs
- entityreference_tresulttype.cs
- WorkflowOperationInvoker.cs
- UnaryQueryOperator.cs
- ResourceCategoryAttribute.cs
- XmlChildEnumerator.cs
- StrongNamePublicKeyBlob.cs
- SiteMapNodeCollection.cs
- WebUtil.cs
- SqlDataSourceEnumerator.cs
- TypeElement.cs
- SmiXetterAccessMap.cs
- AppModelKnownContentFactory.cs
- indexingfiltermarshaler.cs
- RuleAction.cs
- MimeBasePart.cs
- DbMetaDataColumnNames.cs
- DBPropSet.cs
- GenericTextProperties.cs
- ObjectSecurity.cs
- PointAnimationUsingPath.cs
- EntityParameterCollection.cs
- TableRow.cs
- ToolZone.cs
- WebServiceHostFactory.cs
- _ProxyRegBlob.cs
- GridView.cs
- EndpointInfo.cs
- SafeEventHandle.cs
- sqlstateclientmanager.cs
- ResourceProviderFactory.cs
- TriState.cs
- DynamicILGenerator.cs
- DataGridViewCellCancelEventArgs.cs
- CellTreeNodeVisitors.cs
- AffineTransform3D.cs
- _ListenerRequestStream.cs
- OptimizedTemplateContent.cs
- ContractsBCL.cs
- BatchServiceHost.cs
- BypassElement.cs
- ListenerElementsCollection.cs
- DropDownButton.cs
- JoinGraph.cs
- ZipQueryOperator.cs
- Soap12FormatExtensions.cs
- DesignerTransaction.cs
- OleDbParameter.cs
- AggregateNode.cs
- PointCollectionValueSerializer.cs
- CodeDefaultValueExpression.cs
- ClientApiGenerator.cs
- ChannelBinding.cs
- Icon.cs
- BlobPersonalizationState.cs
- PerformanceCounterPermissionEntry.cs
- Vector3DAnimation.cs
- XamlWrapperReaders.cs
- StorageFunctionMapping.cs
- Tracking.cs
- ColorTranslator.cs
- PersonalizablePropertyEntry.cs
- XsdDataContractImporter.cs
- DATA_BLOB.cs
- GuidelineCollection.cs
- hresults.cs
- PagesSection.cs
- ProfileModule.cs
- Select.cs
- DetailsViewInsertedEventArgs.cs
- HwndSubclass.cs
- DeclarativeCatalogPart.cs
- ListenerAdapterBase.cs
- SqlAliaser.cs
- InputLangChangeEvent.cs
- ModifierKeysValueSerializer.cs
- TimelineGroup.cs
- Misc.cs
- NavigatorInput.cs
- PointAnimationUsingKeyFrames.cs
- EmbeddedMailObjectsCollection.cs
- LinkedResourceCollection.cs
- XmlSchema.cs
- _ProxyChain.cs
- ToolboxItemAttribute.cs