Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / SendingRequestEventArgs.cs / 1305376 / 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.Diagnostics; ////// 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 #if ASTORIA_LIGHT [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields", Justification = "Not used in Silverlight")] #endif private System.Net.WebRequest request; ///The request header collection. private System.Net.WebHeaderCollection requestHeaders; ////// Constructor /// /// The request reported through this event /// The request header collection. internal SendingRequestEventArgs(System.Net.WebRequest request, System.Net.WebHeaderCollection requestHeaders) { // In Silverlight the request object is not accesible #if ASTORIA_LIGHT Debug.Assert(null == request, "non-null request in SL."); #else Debug.Assert(null != request, "null request"); #endif Debug.Assert(null != requestHeaders, "null requestHeaders"); this.request = request; this.requestHeaders = requestHeaders; } #if !ASTORIA_LIGHT // Data.Services http stack ///The web request reported through this event. The handler may modify or replace it. public System.Net.WebRequest Request { get { return this.request; } set { Util.CheckArgumentNull(value, "value"); if (!(value is System.Net.HttpWebRequest)) { throw Error.Argument(Strings.Context_SendingRequestEventArgsNotHttp, "value"); } this.request = value; this.requestHeaders = value.Headers; } } #endif ///The request header collection. public System.Net.WebHeaderCollection RequestHeaders { get { return this.requestHeaders; } } } } // 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
- TextBreakpoint.cs
- AngleUtil.cs
- WindowsSlider.cs
- SqlServer2KCompatibilityCheck.cs
- TextCharacters.cs
- RectangleGeometry.cs
- InputManager.cs
- ResourceContainerWrapper.cs
- Wow64ConfigurationLoader.cs
- OpCellTreeNode.cs
- AutomationPatternInfo.cs
- IdleTimeoutMonitor.cs
- ListBoxItemAutomationPeer.cs
- CommandID.cs
- SafeNativeMemoryHandle.cs
- PeerCollaboration.cs
- IISMapPath.cs
- Vector3DAnimation.cs
- MachineKeyConverter.cs
- HtmlTableCell.cs
- BrushMappingModeValidation.cs
- Lasso.cs
- Roles.cs
- TextChangedEventArgs.cs
- InternalConfigEventArgs.cs
- DbProviderManifest.cs
- IIS7UserPrincipal.cs
- XmlNotation.cs
- XamlParser.cs
- SqlDependencyListener.cs
- ProcessProtocolHandler.cs
- Icon.cs
- EdmError.cs
- Tag.cs
- HtmlTableRowCollection.cs
- Visual3DCollection.cs
- Scheduling.cs
- X509Utils.cs
- SafeRightsManagementQueryHandle.cs
- Win32.cs
- BlurBitmapEffect.cs
- mediaeventargs.cs
- SystemIPInterfaceProperties.cs
- SoapServerProtocol.cs
- EnumerableValidator.cs
- LayoutEngine.cs
- XmlMtomWriter.cs
- WebSysDescriptionAttribute.cs
- ProviderCollection.cs
- ResourceIDHelper.cs
- JournalNavigationScope.cs
- HostAdapter.cs
- CannotUnloadAppDomainException.cs
- _BufferOffsetSize.cs
- OdbcConnection.cs
- ScrollBar.cs
- TextBreakpoint.cs
- CfgParser.cs
- SecurityVersion.cs
- CroppedBitmap.cs
- SevenBitStream.cs
- documentsequencetextpointer.cs
- WhitespaceRuleReader.cs
- IdleTimeoutMonitor.cs
- ListViewDeletedEventArgs.cs
- URL.cs
- loginstatus.cs
- StatusBarAutomationPeer.cs
- AssertFilter.cs
- _LocalDataStoreMgr.cs
- SchemaEntity.cs
- EventLogStatus.cs
- XPathException.cs
- ItemsChangedEventArgs.cs
- OracleSqlParser.cs
- StylesEditorDialog.cs
- CfgParser.cs
- NeutralResourcesLanguageAttribute.cs
- MetadataCacheItem.cs
- WebPartMenuStyle.cs
- ToolboxDataAttribute.cs
- RepeaterCommandEventArgs.cs
- ServiceThrottle.cs
- _NetworkingPerfCounters.cs
- MarshalByValueComponent.cs
- TextFindEngine.cs
- XmlSchemaAnyAttribute.cs
- DBDataPermission.cs
- XmlObjectSerializerWriteContext.cs
- PropertyPathConverter.cs
- ExtendedTransformFactory.cs
- PropertyChangedEventManager.cs
- WorkflowServiceNamespace.cs
- MultiDataTrigger.cs
- SafeEventLogWriteHandle.cs
- HttpRequestCacheValidator.cs
- SettingsAttributeDictionary.cs
- AssemblyAssociatedContentFileAttribute.cs
- OleDbReferenceCollection.cs
- DbSetClause.cs