Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PingOptions.cs
- XhtmlTextWriter.cs
- AsyncOperation.cs
- PngBitmapEncoder.cs
- WebPartMenu.cs
- MsmqProcessProtocolHandler.cs
- ReachDocumentReferenceCollectionSerializer.cs
- MenuDesigner.cs
- FormViewDesigner.cs
- ObjectItemLoadingSessionData.cs
- HwndSourceParameters.cs
- shaperfactoryquerycacheentry.cs
- DataGridRowHeader.cs
- XmlDomTextWriter.cs
- ContentDefinition.cs
- LambdaCompiler.Binary.cs
- TransactionManager.cs
- OleDbErrorCollection.cs
- OrCondition.cs
- ElementFactory.cs
- TreeViewCancelEvent.cs
- ManagementBaseObject.cs
- MessageDescriptionCollection.cs
- WebPartConnectionsEventArgs.cs
- LogWriteRestartAreaState.cs
- EmissiveMaterial.cs
- CustomTypeDescriptor.cs
- Comparer.cs
- XPathChildIterator.cs
- Hex.cs
- MasterPageParser.cs
- SystemBrushes.cs
- Help.cs
- SplitterEvent.cs
- SerializerProvider.cs
- XmlEventCache.cs
- KernelTypeValidation.cs
- ContextDataSource.cs
- SchemaElementDecl.cs
- DataGridBoolColumn.cs
- ReadOnlyDictionary.cs
- KerberosSecurityTokenProvider.cs
- WindowsComboBox.cs
- CodeTypeReference.cs
- HtmlTitle.cs
- ProfileEventArgs.cs
- ObjectHandle.cs
- BaseTemplateParser.cs
- CorrelationTokenTypeConvertor.cs
- ColorAnimationUsingKeyFrames.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PropertyGridEditorPart.cs
- CollectionConverter.cs
- Currency.cs
- ClonableStack.cs
- TreeNodeSelectionProcessor.cs
- XmlSchemaAnyAttribute.cs
- ISFTagAndGuidCache.cs
- ExtensionQuery.cs
- RandomNumberGenerator.cs
- StorageEntitySetMapping.cs
- ResourceExpressionBuilder.cs
- PropertyMetadata.cs
- Debugger.cs
- ChangeConflicts.cs
- SQLChars.cs
- JumpTask.cs
- TargetControlTypeCache.cs
- X509Utils.cs
- RawMouseInputReport.cs
- ConfigurationCollectionAttribute.cs
- SymbolEqualComparer.cs
- XmlReader.cs
- OleDbException.cs
- PasswordPropertyTextAttribute.cs
- MeasureItemEvent.cs
- BrushMappingModeValidation.cs
- ServiceObjectContainer.cs
- CatalogZoneDesigner.cs
- QilTypeChecker.cs
- Property.cs
- NamespaceList.cs
- CmsInterop.cs
- X509CertificateCollection.cs
- LineGeometry.cs
- FontStretchConverter.cs
- MenuItemAutomationPeer.cs
- View.cs
- _SSPISessionCache.cs
- MarginsConverter.cs
- HandlerBase.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- DetailsViewDeletedEventArgs.cs
- ModifierKeysConverter.cs
- ApplicationDirectoryMembershipCondition.cs
- Rotation3DAnimationUsingKeyFrames.cs
- linebase.cs
- StreamAsIStream.cs
- GridViewRowEventArgs.cs