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
- SafeNativeMethods.cs
- WebPartCancelEventArgs.cs
- RuleCache.cs
- GlobalizationAssembly.cs
- InternalConfirm.cs
- datacache.cs
- ZipIOExtraField.cs
- InvalidateEvent.cs
- XPathChildIterator.cs
- ExpressionBindingCollection.cs
- SqlDataReader.cs
- ToolStripButton.cs
- ScrollPatternIdentifiers.cs
- DrawingAttributeSerializer.cs
- TextTreeText.cs
- Vector3DAnimation.cs
- EndpointDispatcherTable.cs
- TypeExtensionSerializer.cs
- RadioButtonFlatAdapter.cs
- SqlAggregateChecker.cs
- TrackingCondition.cs
- HtmlTable.cs
- CustomAttributeSerializer.cs
- GACIdentityPermission.cs
- LineServicesCallbacks.cs
- PlatformNotSupportedException.cs
- SqlCommand.cs
- _NetworkingPerfCounters.cs
- Opcode.cs
- HeaderedItemsControl.cs
- XmlWrappingWriter.cs
- APCustomTypeDescriptor.cs
- HandleTable.cs
- VerificationAttribute.cs
- TextAction.cs
- _ListenerAsyncResult.cs
- MetafileHeaderEmf.cs
- TypeInitializationException.cs
- ProfileInfo.cs
- AvtEvent.cs
- TransmissionStrategy.cs
- DatatypeImplementation.cs
- ExtendedProperty.cs
- StickyNoteAnnotations.cs
- EnvironmentPermission.cs
- TransactionFlowBindingElementImporter.cs
- TemplateKeyConverter.cs
- XsltQilFactory.cs
- FutureFactory.cs
- QilSortKey.cs
- HttpInputStream.cs
- DataTrigger.cs
- CounterSample.cs
- CharAnimationBase.cs
- CngAlgorithmGroup.cs
- Visitor.cs
- SimpleApplicationHost.cs
- DecimalFormatter.cs
- Function.cs
- FilteredAttributeCollection.cs
- CompatibleComparer.cs
- ItemList.cs
- ErrorStyle.cs
- MenuBase.cs
- SctClaimSerializer.cs
- DataGridColumnHeaderCollection.cs
- GridView.cs
- CreationContext.cs
- Route.cs
- CompensatableTransactionScopeActivityDesigner.cs
- DataControlField.cs
- AuthenticationConfig.cs
- TreeViewAutomationPeer.cs
- x509utils.cs
- XmlKeywords.cs
- SurrogateEncoder.cs
- SrgsElement.cs
- ZipIOExtraFieldZip64Element.cs
- DocumentReference.cs
- MetadataItemSerializer.cs
- Clause.cs
- TextRunTypographyProperties.cs
- ClassHandlersStore.cs
- DataRowChangeEvent.cs
- TextEditorCharacters.cs
- ISAPIWorkerRequest.cs
- MediaElement.cs
- SslStream.cs
- TextElementAutomationPeer.cs
- ReflectionTypeLoadException.cs
- Route.cs
- WindowsStartMenu.cs
- TableStyle.cs
- RegionIterator.cs
- RtfToXamlReader.cs
- PropertyEntry.cs
- TypeDependencyAttribute.cs
- VersionPair.cs
- FormViewDeleteEventArgs.cs
- EdgeModeValidation.cs