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
- XmlRootAttribute.cs
- CodePageEncoding.cs
- TemplateContainer.cs
- GenericEnumConverter.cs
- GiveFeedbackEvent.cs
- TypedTableHandler.cs
- ProcessingInstructionAction.cs
- TargetParameterCountException.cs
- XmlDataSourceView.cs
- XmlHierarchyData.cs
- WindowsListBox.cs
- TrackingQuery.cs
- Icon.cs
- Util.cs
- SHA384.cs
- GlyphManager.cs
- EmptyStringExpandableObjectConverter.cs
- RouteItem.cs
- SystemWebSectionGroup.cs
- ArgumentDirectionHelper.cs
- TextEditorMouse.cs
- DirectoryObjectSecurity.cs
- BitmapEffectDrawing.cs
- ContentPlaceHolder.cs
- DataGridViewCellValueEventArgs.cs
- EntityTypeEmitter.cs
- FloaterBaseParagraph.cs
- SqlNodeTypeOperators.cs
- GZipDecoder.cs
- EventMap.cs
- WizardForm.cs
- PaperSize.cs
- PackUriHelper.cs
- DataServiceHost.cs
- DependencyPropertyDescriptor.cs
- DataGridViewMethods.cs
- TypedDataSetSchemaImporterExtension.cs
- CachedPathData.cs
- NodeInfo.cs
- HWStack.cs
- RuleSetBrowserDialog.cs
- ChtmlPageAdapter.cs
- WrapPanel.cs
- SqlDependency.cs
- XmlSchemaType.cs
- CollectionChangeEventArgs.cs
- TableLayoutSettingsTypeConverter.cs
- UrlMappingsSection.cs
- EventHandlerList.cs
- HitTestFilterBehavior.cs
- TemplateControlParser.cs
- IndependentAnimationStorage.cs
- ViewUtilities.cs
- SecurityElement.cs
- LinqDataSourceDisposeEventArgs.cs
- EventSetter.cs
- StorageRoot.cs
- ColorContextHelper.cs
- ImageSource.cs
- XPathItem.cs
- MinimizableAttributeTypeConverter.cs
- ListViewTableCell.cs
- NativeWindow.cs
- RepeatBehaviorConverter.cs
- Model3DCollection.cs
- RealProxy.cs
- StateDesignerConnector.cs
- ComponentResourceManager.cs
- LayoutEditorPart.cs
- ObjectStateEntry.cs
- HTMLTextWriter.cs
- AssemblyNameProxy.cs
- XmlHelper.cs
- SchemaInfo.cs
- PersonalizationEntry.cs
- PinnedBufferMemoryStream.cs
- SQLDoubleStorage.cs
- SHA256CryptoServiceProvider.cs
- ApplicationServiceManager.cs
- ColumnTypeConverter.cs
- OleAutBinder.cs
- validationstate.cs
- DataKey.cs
- AttachedAnnotation.cs
- UnmanagedMarshal.cs
- NetworkInterface.cs
- MouseOverProperty.cs
- HttpPostedFileBase.cs
- DataGridCellsPresenter.cs
- DbConnectionClosed.cs
- QueryExpression.cs
- CfgParser.cs
- StorageEntityTypeMapping.cs
- TableCell.cs
- WsdlBuildProvider.cs
- DomainUpDown.cs
- DependencyPropertyKind.cs
- CommonXSendMessage.cs
- XmlSchemaComplexContent.cs
- WebServiceReceiveDesigner.cs