Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceRequestOfT.cs / 2 / 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
- DefaultTraceListener.cs
- InternalResources.cs
- QueryExecutionOption.cs
- ObjectHandle.cs
- ReadOnlyHierarchicalDataSource.cs
- MultiDataTrigger.cs
- LocalServiceSecuritySettingsElement.cs
- MatrixTransform3D.cs
- DefaultEvaluationContext.cs
- FixedSOMLineCollection.cs
- DbCommandDefinition.cs
- XPathNodeIterator.cs
- ToggleProviderWrapper.cs
- StringSorter.cs
- LinkedResource.cs
- TracingConnectionInitiator.cs
- MD5HashHelper.cs
- TextSchema.cs
- SchemaImporterExtension.cs
- RsaKeyIdentifierClause.cs
- CharacterShapingProperties.cs
- PagesSection.cs
- Int64KeyFrameCollection.cs
- CacheMode.cs
- Converter.cs
- VisualStateChangedEventArgs.cs
- RecordManager.cs
- MatrixTransform.cs
- DataRowChangeEvent.cs
- RequestDescription.cs
- QueuePropertyVariants.cs
- ObfuscateAssemblyAttribute.cs
- DBConcurrencyException.cs
- JsonReader.cs
- NetworkAddressChange.cs
- EdgeProfileValidation.cs
- Dictionary.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ResourceDescriptionAttribute.cs
- ITextView.cs
- BinaryWriter.cs
- StringAnimationBase.cs
- ProfileSettingsCollection.cs
- TextHintingModeValidation.cs
- InvalidOperationException.cs
- ArrayList.cs
- QilUnary.cs
- PropertyEntry.cs
- MasterPageBuildProvider.cs
- ConnectionOrientedTransportBindingElement.cs
- shaperfactoryquerycachekey.cs
- ResXFileRef.cs
- HtmlInputPassword.cs
- StackSpiller.Generated.cs
- PersianCalendar.cs
- ResourceDescriptionAttribute.cs
- TrustManagerPromptUI.cs
- MessageDecoder.cs
- FileSystemInfo.cs
- TableProvider.cs
- _DigestClient.cs
- Queue.cs
- ConfigurationStrings.cs
- CounterSampleCalculator.cs
- ProtectedProviderSettings.cs
- Rectangle.cs
- XPathNavigatorException.cs
- QilBinary.cs
- __ConsoleStream.cs
- PageCache.cs
- EditorPartChrome.cs
- CodeComment.cs
- XmlUrlEditor.cs
- SoapSchemaImporter.cs
- BamlLocalizabilityResolver.cs
- Point3DKeyFrameCollection.cs
- NavigationWindowAutomationPeer.cs
- mansign.cs
- EntityTypeEmitter.cs
- ValidationSummary.cs
- DateTimeValueSerializer.cs
- TransformerConfigurationWizardBase.cs
- MachineSettingsSection.cs
- UInt16.cs
- TextContainerChangedEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- PaintValueEventArgs.cs
- AsyncPostBackErrorEventArgs.cs
- HtmlElementCollection.cs
- PrintingPermissionAttribute.cs
- HtmlMeta.cs
- CheckBoxList.cs
- DataTableMapping.cs
- WebPartVerb.cs
- UICuesEvent.cs
- XmlSyndicationContent.cs
- Method.cs
- SpecialFolderEnumConverter.cs
- ColumnReorderedEventArgs.cs
- ProfileSettingsCollection.cs