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
- ImpersonationOption.cs
- ModifyActivitiesPropertyDescriptor.cs
- XPathExpr.cs
- Table.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- odbcmetadatafactory.cs
- TaskFormBase.cs
- TextFindEngine.cs
- DataRowExtensions.cs
- LoginDesignerUtil.cs
- AsyncOperationManager.cs
- ComEventsHelper.cs
- SecurityNegotiationException.cs
- XmlWrappingReader.cs
- XPathDescendantIterator.cs
- ConfigurationProperty.cs
- TemplatedWizardStep.cs
- ProviderMetadata.cs
- ArrayList.cs
- GatewayDefinition.cs
- ActiveXContainer.cs
- WindowsTooltip.cs
- ButtonChrome.cs
- DataServiceRequest.cs
- TraceEventCache.cs
- TiffBitmapEncoder.cs
- relpropertyhelper.cs
- ElapsedEventArgs.cs
- SchemaInfo.cs
- DataTransferEventArgs.cs
- LinkLabel.cs
- MobileTextWriter.cs
- SizeAnimation.cs
- HttpBrowserCapabilitiesBase.cs
- PrivateFontCollection.cs
- EraserBehavior.cs
- SerializationObjectManager.cs
- LinearGradientBrush.cs
- EntityTemplateFactory.cs
- SeekStoryboard.cs
- BamlTreeNode.cs
- UnsafeNativeMethods.cs
- CompilationLock.cs
- FileDialogCustomPlaces.cs
- SystemIPInterfaceStatistics.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- UTF32Encoding.cs
- XmlFileEditor.cs
- ChannelDispatcherBase.cs
- ExpressionBuilder.cs
- RestHandler.cs
- DESCryptoServiceProvider.cs
- NotifyParentPropertyAttribute.cs
- InitializationEventAttribute.cs
- SqlConnectionHelper.cs
- DateTimeConstantAttribute.cs
- IRCollection.cs
- MetadataArtifactLoaderCompositeResource.cs
- AppSecurityManager.cs
- SinglePageViewer.cs
- DataGridViewCellPaintingEventArgs.cs
- GraphicsPathIterator.cs
- DelegatedStream.cs
- ProtocolViolationException.cs
- GlobalizationSection.cs
- AmbientLight.cs
- QualificationDataAttribute.cs
- InstallerTypeAttribute.cs
- WeakReferenceKey.cs
- ClientRuntimeConfig.cs
- ConsoleEntryPoint.cs
- ThemeDictionaryExtension.cs
- StrongNameKeyPair.cs
- DataTemplate.cs
- ErasingStroke.cs
- SemaphoreSecurity.cs
- HMACSHA384.cs
- MexTcpBindingElement.cs
- DependencyObjectType.cs
- EmptyElement.cs
- UnsafeNativeMethods.cs
- figurelengthconverter.cs
- StorageConditionPropertyMapping.cs
- XPathDocumentBuilder.cs
- MatrixValueSerializer.cs
- Point3DValueSerializer.cs
- RunWorkerCompletedEventArgs.cs
- RelationshipDetailsRow.cs
- HotSpot.cs
- SoapCodeExporter.cs
- CaseStatementSlot.cs
- AudioBase.cs
- GridViewSelectEventArgs.cs
- ManagementOptions.cs
- ToggleButton.cs
- ProfileService.cs
- GuidelineCollection.cs
- IItemProperties.cs
- Condition.cs
- Simplifier.cs