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 / 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
- ObjectDataSourceFilteringEventArgs.cs
- NoPersistScope.cs
- CompilationUtil.cs
- ToolBar.cs
- DefaultValidator.cs
- XmlILAnnotation.cs
- UserControl.cs
- RSAOAEPKeyExchangeDeformatter.cs
- _SafeNetHandles.cs
- EventLog.cs
- DispatcherObject.cs
- FilteredReadOnlyMetadataCollection.cs
- AuthenticationSection.cs
- VisualStyleElement.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- PerformanceCounter.cs
- DependencyObjectProvider.cs
- HttpWebResponse.cs
- RangeContentEnumerator.cs
- NumberSubstitution.cs
- SplayTreeNode.cs
- HttpHandlerAction.cs
- ConnectionStringSettings.cs
- StaticExtensionConverter.cs
- TableRow.cs
- CodeSnippetStatement.cs
- CodePageUtils.cs
- SerializationInfo.cs
- DownloadProgressEventArgs.cs
- AutoResetEvent.cs
- OracleParameter.cs
- InvalidCommandTreeException.cs
- LineInfo.cs
- TraceContext.cs
- WindowsMenu.cs
- ToolboxItemFilterAttribute.cs
- VBCodeProvider.cs
- ImageSource.cs
- PropertyNames.cs
- ObjectStateManager.cs
- CanExecuteRoutedEventArgs.cs
- PostBackTrigger.cs
- ADMembershipProvider.cs
- SQLBinaryStorage.cs
- DBDataPermissionAttribute.cs
- EntityProviderServices.cs
- AlgoModule.cs
- SelectionItemProviderWrapper.cs
- Version.cs
- Exception.cs
- _HeaderInfoTable.cs
- IsolationInterop.cs
- HtmlInputReset.cs
- TransactionsSectionGroup.cs
- configsystem.cs
- ExtensionDataObject.cs
- XPathParser.cs
- Switch.cs
- HwndSource.cs
- ToolStripControlHost.cs
- _KerberosClient.cs
- XmlSchemaSequence.cs
- XNodeValidator.cs
- SizeConverter.cs
- OLEDB_Util.cs
- FrameworkElement.cs
- InputScopeConverter.cs
- XPathParser.cs
- XmlCharCheckingReader.cs
- DataGridViewColumnConverter.cs
- UIElement.cs
- BuildProviderAppliesToAttribute.cs
- BufferBuilder.cs
- DataPagerField.cs
- BamlTreeUpdater.cs
- HttpModulesInstallComponent.cs
- StreamGeometryContext.cs
- ImageAutomationPeer.cs
- RegionIterator.cs
- IntranetCredentialPolicy.cs
- ToolStripDropDown.cs
- PageContentAsyncResult.cs
- Style.cs
- BindingsCollection.cs
- AspNetRouteServiceHttpHandler.cs
- MergablePropertyAttribute.cs
- AncestorChangedEventArgs.cs
- DataColumnMappingCollection.cs
- ToolTip.cs
- AccessDataSourceView.cs
- SymbolTable.cs
- ColorTransformHelper.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ConnectionsZone.cs
- CopyCodeAction.cs
- FixedSchema.cs
- OutgoingWebRequestContext.cs
- PromptStyle.cs
- DatagridviewDisplayedBandsData.cs
- EncoderParameter.cs