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 / DataServiceRequestOfT.cs / 1 / DataServiceRequestOfT.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// typed request object // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Collections; using System.IO; using System.Linq; ////// Holds a Uri and type for the request. /// ///The type to construct for the request results public sealed class DataServiceRequest: DataServiceRequest { /// The URI for the request. private readonly Uri requestUri; ///Create a request for a specific Uri /// The URI for the request. public DataServiceRequest(Uri requestUri) { Util.CheckArgumentNull(requestUri, "requestUri"); this.requestUri = requestUri; } ///Element Type public override Type ElementType { get { return typeof(TElement); } } ///The URI for the request. public override Uri RequestUri { get { return this.requestUri; } } ///enumerable of materialized objects from stream without having to know T /// context /// contentType /// function to get response stream ///see summary internal override IEnumerable Materialize(DataServiceContext context, string contentType, Funcresponse) { return Materialize (context, contentType, response); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // //// typed request object // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System; using System.Collections; using System.IO; using System.Linq; ////// Holds a Uri and type for the request. /// ///The type to construct for the request results public sealed class DataServiceRequest: DataServiceRequest { /// The URI for the request. private readonly Uri requestUri; ///Create a request for a specific Uri /// The URI for the request. public DataServiceRequest(Uri requestUri) { Util.CheckArgumentNull(requestUri, "requestUri"); this.requestUri = requestUri; } ///Element Type public override Type ElementType { get { return typeof(TElement); } } ///The URI for the request. public override Uri RequestUri { get { return this.requestUri; } } ///enumerable of materialized objects from stream without having to know T /// context /// contentType /// function to get response stream ///see summary internal override IEnumerable Materialize(DataServiceContext context, string contentType, Funcresponse) { return Materialize (context, contentType, response); } } } // 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
- SplineQuaternionKeyFrame.cs
- BroadcastEventHelper.cs
- RangeValuePatternIdentifiers.cs
- CodeVariableReferenceExpression.cs
- GenericTextProperties.cs
- SafeTokenHandle.cs
- StandardToolWindows.cs
- DateBoldEvent.cs
- XmlSchemaObjectCollection.cs
- DbModificationCommandTree.cs
- TextStore.cs
- LoaderAllocator.cs
- DataGridViewRowStateChangedEventArgs.cs
- ToolStripMenuItemDesigner.cs
- Crypto.cs
- FreeFormDragDropManager.cs
- WindowProviderWrapper.cs
- SizeConverter.cs
- OuterGlowBitmapEffect.cs
- KnownTypeDataContractResolver.cs
- TextPointerBase.cs
- NativeMethods.cs
- Dynamic.cs
- SqlWebEventProvider.cs
- GeometryHitTestParameters.cs
- NullableConverter.cs
- KeyedQueue.cs
- CheckBoxField.cs
- JpegBitmapEncoder.cs
- StickyNoteContentControl.cs
- While.cs
- SiteMapNode.cs
- PropertyGeneratedEventArgs.cs
- Stack.cs
- TextBoxBaseDesigner.cs
- PropertyManager.cs
- ToolStripItemEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- ReflectionServiceProvider.cs
- UpdatePanelTrigger.cs
- ClientCultureInfo.cs
- KeyEventArgs.cs
- ChangeTracker.cs
- FormatVersion.cs
- GlyphInfoList.cs
- FileUtil.cs
- CdpEqualityComparer.cs
- DataRowCollection.cs
- SafeRightsManagementSessionHandle.cs
- PerformanceCounterLib.cs
- DataServiceProcessingPipelineEventArgs.cs
- WindowsFormsSectionHandler.cs
- InvokeProviderWrapper.cs
- DataGridViewRowsAddedEventArgs.cs
- Errors.cs
- TypeForwardedFromAttribute.cs
- ColumnWidthChangingEvent.cs
- AsyncPostBackErrorEventArgs.cs
- SelectionService.cs
- WebServiceParameterData.cs
- Debug.cs
- AdapterUtil.cs
- CheckBox.cs
- ControlValuePropertyAttribute.cs
- RuntimeConfigurationRecord.cs
- SocketException.cs
- Effect.cs
- RepeatInfo.cs
- CellIdBoolean.cs
- Exception.cs
- ApplicationSettingsBase.cs
- PersistenceTask.cs
- KnownTypeHelper.cs
- LookupNode.cs
- DoubleStorage.cs
- CookieHandler.cs
- validationstate.cs
- COM2TypeInfoProcessor.cs
- PackWebRequestFactory.cs
- VectorKeyFrameCollection.cs
- ParseHttpDate.cs
- DataGridParentRows.cs
- GridEntry.cs
- HwndProxyElementProvider.cs
- CustomWebEventKey.cs
- ComponentResourceKey.cs
- CellTreeSimplifier.cs
- SQLSingleStorage.cs
- RectangleF.cs
- SchemaEntity.cs
- CharacterMetricsDictionary.cs
- ResourcePool.cs
- StylusPointDescription.cs
- ObjectDataSourceEventArgs.cs
- SoapHeaders.cs
- GenericTypeParameterBuilder.cs
- ImageCreator.cs
- GetPageCompletedEventArgs.cs
- XmlSchemaDatatype.cs
- TailPinnedEventArgs.cs