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
- XmlHelper.cs
- Options.cs
- HitTestParameters3D.cs
- DesignSurfaceManager.cs
- RootBrowserWindowProxy.cs
- DeviceSpecificChoiceCollection.cs
- EventManager.cs
- initElementDictionary.cs
- PositiveTimeSpanValidatorAttribute.cs
- ParameterElement.cs
- WindowsTreeView.cs
- ComponentResourceKeyConverter.cs
- Triplet.cs
- WSSecureConversationDec2005.cs
- ReferentialConstraint.cs
- TransformDescriptor.cs
- UrlParameterReader.cs
- FastPropertyAccessor.cs
- PointCollection.cs
- CharAnimationUsingKeyFrames.cs
- DecimalFormatter.cs
- IDReferencePropertyAttribute.cs
- LocatorPartList.cs
- AllMembershipCondition.cs
- IntSecurity.cs
- CodeTypeDelegate.cs
- ServicePoint.cs
- GridItemCollection.cs
- ChangeDirector.cs
- CapabilitiesAssignment.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SetMemberBinder.cs
- DefaultValueAttribute.cs
- TimelineClockCollection.cs
- PageThemeBuildProvider.cs
- GeneralTransform.cs
- DLinqAssociationProvider.cs
- WebException.cs
- KeyGestureValueSerializer.cs
- SchemaImporterExtensionElementCollection.cs
- DependencyPropertyConverter.cs
- RoutedEventValueSerializer.cs
- OleDbDataAdapter.cs
- RootAction.cs
- ContentControl.cs
- DocumentOrderQuery.cs
- LinqToSqlWrapper.cs
- DataGridViewRowEventArgs.cs
- XPathAxisIterator.cs
- SocketAddress.cs
- DirectoryInfo.cs
- ValidationRule.cs
- AssemblyBuilder.cs
- PointConverter.cs
- PolicyException.cs
- ReceiveParametersContent.cs
- UriExt.cs
- NotConverter.cs
- SmuggledIUnknown.cs
- SharedPerformanceCounter.cs
- CodeArrayCreateExpression.cs
- SQLDoubleStorage.cs
- MaskInputRejectedEventArgs.cs
- ScrollBarRenderer.cs
- ListSortDescription.cs
- ProxySimple.cs
- ProtocolViolationException.cs
- TextContainerChangedEventArgs.cs
- ListSortDescription.cs
- HtmlHistory.cs
- IdentityVerifier.cs
- WebDisplayNameAttribute.cs
- AttributeCollection.cs
- AvTraceFormat.cs
- MLangCodePageEncoding.cs
- EventItfInfo.cs
- AppendHelper.cs
- XmlToDatasetMap.cs
- WorkflowInstance.cs
- HttpListenerResponse.cs
- ResXDataNode.cs
- DetailsViewDeleteEventArgs.cs
- WindowsIdentity.cs
- EditingContext.cs
- DbDataRecord.cs
- PropertyGridView.cs
- ActivityCollectionMarkupSerializer.cs
- EntitySetRetriever.cs
- ExpressionDumper.cs
- RegexCharClass.cs
- DesignerActionUI.cs
- SemanticBasicElement.cs
- SqlCaseSimplifier.cs
- DateTimeFormatInfo.cs
- PreviewKeyDownEventArgs.cs
- StructuralObject.cs
- CodeMemberMethod.cs
- BaseHashHelper.cs
- FormatException.cs
- QueryConverter.cs