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
- HwndTarget.cs
- UndoManager.cs
- UidPropertyAttribute.cs
- MgmtConfigurationRecord.cs
- DbMetaDataFactory.cs
- ParserExtension.cs
- SectionUpdates.cs
- MemoryMappedFile.cs
- EventLogEntryCollection.cs
- XmlSchemaComplexContentRestriction.cs
- DeclaredTypeElementCollection.cs
- ResXResourceSet.cs
- DrawingImage.cs
- HtmlTextArea.cs
- ClassicBorderDecorator.cs
- BevelBitmapEffect.cs
- CacheDict.cs
- RegexMatch.cs
- ListViewGroupConverter.cs
- TemplateField.cs
- UpdatePanelControlTrigger.cs
- DependencyPropertyConverter.cs
- ExitEventArgs.cs
- RequestQueue.cs
- UriTemplateClientFormatter.cs
- LinkGrep.cs
- ScriptResourceInfo.cs
- DataGridTemplateColumn.cs
- PerformanceCounterManager.cs
- RestHandler.cs
- LinkArea.cs
- ConfigurationManagerHelperFactory.cs
- BitmapEffectGroup.cs
- Symbol.cs
- MenuDesigner.cs
- XmlUtil.cs
- TitleStyle.cs
- CollectionViewGroup.cs
- RepeaterItemCollection.cs
- SerialPinChanges.cs
- PeerCollaborationPermission.cs
- CompositeTypefaceMetrics.cs
- DependencyObjectPropertyDescriptor.cs
- PeerEndPoint.cs
- Geometry.cs
- XpsFilter.cs
- RepeaterItemCollection.cs
- Parsers.cs
- Publisher.cs
- SessionViewState.cs
- StatusBarDrawItemEvent.cs
- SubMenuStyleCollection.cs
- TargetPerspective.cs
- DataGridSortCommandEventArgs.cs
- TraceRecord.cs
- TabItemAutomationPeer.cs
- ImageDrawing.cs
- HiddenFieldPageStatePersister.cs
- XhtmlTextWriter.cs
- TextView.cs
- metadatamappinghashervisitor.cs
- SuppressMergeCheckAttribute.cs
- PackWebRequestFactory.cs
- SwitchLevelAttribute.cs
- AttributeEmitter.cs
- DataGridRow.cs
- HelpKeywordAttribute.cs
- NumberFormatInfo.cs
- SortedDictionary.cs
- ButtonField.cs
- PeerObject.cs
- SqlCharStream.cs
- ToolBar.cs
- Native.cs
- XmlSortKeyAccumulator.cs
- UrlPropertyAttribute.cs
- SqlWorkflowInstanceStoreLock.cs
- URLIdentityPermission.cs
- QueuePathDialog.cs
- HtmlMobileTextWriter.cs
- UriParserTemplates.cs
- DataBindingsDialog.cs
- _SslState.cs
- QilSortKey.cs
- OverflowException.cs
- TrustManager.cs
- KeyInfo.cs
- TransportConfigurationTypeElementCollection.cs
- Rotation3D.cs
- XpsImageSerializationService.cs
- AdapterSwitches.cs
- SymLanguageVendor.cs
- InputLangChangeRequestEvent.cs
- UrlRoutingModule.cs
- CleanUpVirtualizedItemEventArgs.cs
- PageOrientation.cs
- EncodingNLS.cs
- OdbcParameterCollection.cs
- AQNBuilder.cs
- SqlRemoveConstantOrderBy.cs