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
- DataGridViewRowPostPaintEventArgs.cs
- DataAdapter.cs
- COM2Properties.cs
- SrgsDocument.cs
- WindowsPrincipal.cs
- ManualResetEvent.cs
- PtsContext.cs
- SqlDataSourceCommandEventArgs.cs
- TextElement.cs
- BufferModesCollection.cs
- PerfService.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- QuaternionAnimation.cs
- ArgIterator.cs
- TypeResolvingOptionsAttribute.cs
- SafeSerializationManager.cs
- validation.cs
- TabControl.cs
- SizeAnimationBase.cs
- DateTimeFormatInfoScanner.cs
- InheritanceRules.cs
- ProfileGroupSettingsCollection.cs
- StatementContext.cs
- ContentElementCollection.cs
- TemplatePagerField.cs
- SafeArrayTypeMismatchException.cs
- UpdatePanel.cs
- XmlFormatReaderGenerator.cs
- RemoteCryptoTokenProvider.cs
- SyndicationDeserializer.cs
- ServicePointManagerElement.cs
- Msec.cs
- XmlSchemaValidator.cs
- ImageConverter.cs
- XmlNodeChangedEventArgs.cs
- TypeUnloadedException.cs
- LineServices.cs
- DataGridTable.cs
- ByteAnimationBase.cs
- XmlDocumentSurrogate.cs
- SyncMethodInvoker.cs
- AliasGenerator.cs
- EditorResources.cs
- AdPostCacheSubstitution.cs
- TextAdaptor.cs
- VirtualPathUtility.cs
- ElementsClipboardData.cs
- WpfKnownType.cs
- Root.cs
- ManualResetEvent.cs
- SerialPinChanges.cs
- SQLBoolean.cs
- SinglePhaseEnlistment.cs
- ExpressionBindingCollection.cs
- SmtpCommands.cs
- ApplyImportsAction.cs
- Visual3D.cs
- SurrogateSelector.cs
- CheckBoxPopupAdapter.cs
- GifBitmapEncoder.cs
- LicenseException.cs
- OracleConnection.cs
- BackStopAuthenticationModule.cs
- IisTraceListener.cs
- DefaultPrintController.cs
- PrimitiveXmlSerializers.cs
- SaveFileDialog.cs
- DataDesignUtil.cs
- Win32Exception.cs
- ExpressionBindings.cs
- ZipIOLocalFileDataDescriptor.cs
- AssemblyInfo.cs
- SQLUtility.cs
- TransactionOptions.cs
- TextSimpleMarkerProperties.cs
- ContentPresenter.cs
- CodeSnippetTypeMember.cs
- ErrorEventArgs.cs
- entityreference_tresulttype.cs
- HttpCachePolicyBase.cs
- LinearGradientBrush.cs
- CodeAssignStatement.cs
- TextEditorLists.cs
- LifetimeServices.cs
- MonthCalendar.cs
- Set.cs
- DisableDpiAwarenessAttribute.cs
- _OverlappedAsyncResult.cs
- DataDesignUtil.cs
- TextBox.cs
- ProvidePropertyAttribute.cs
- XMLSchema.cs
- DataBoundControlHelper.cs
- RectAnimationClockResource.cs
- WebPartDisplayMode.cs
- StackOverflowException.cs
- CheckableControlBaseAdapter.cs
- RuleConditionDialog.cs
- GenericWebPart.cs
- DesignTimeTemplateParser.cs