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
- PipelineModuleStepContainer.cs
- PropertyTab.cs
- AnyAllSearchOperator.cs
- EpmSyndicationContentSerializer.cs
- ModelItemDictionaryImpl.cs
- ChtmlFormAdapter.cs
- RsaSecurityKey.cs
- CombinedGeometry.cs
- UpdatableWrapper.cs
- ComponentCollection.cs
- WebRequestModuleElementCollection.cs
- LinkButton.cs
- DataGridViewCellConverter.cs
- Clause.cs
- SubclassTypeValidator.cs
- ListViewUpdateEventArgs.cs
- TextBox.cs
- LogicalTreeHelper.cs
- WaitHandle.cs
- EnumUnknown.cs
- UnsafeNativeMethods.cs
- ParentQuery.cs
- SortFieldComparer.cs
- MeshGeometry3D.cs
- WindowsContainer.cs
- PlaceHolder.cs
- ModuleElement.cs
- DetailsViewRow.cs
- BitmapFrame.cs
- MainMenu.cs
- FieldToken.cs
- ArgumentException.cs
- TypeDelegator.cs
- _ConnectOverlappedAsyncResult.cs
- FlowPosition.cs
- FixedPageStructure.cs
- DataGridViewElement.cs
- QueryOperatorEnumerator.cs
- SkipStoryboardToFill.cs
- ReliableChannelListener.cs
- ProjectionNode.cs
- FormClosingEvent.cs
- SingleResultAttribute.cs
- EncoderNLS.cs
- ConvertBinder.cs
- AvTraceFormat.cs
- WindowsFormsHelpers.cs
- ColorTranslator.cs
- HtmlControlDesigner.cs
- Main.cs
- EventSinkHelperWriter.cs
- CookielessData.cs
- CustomMenuItemCollection.cs
- MobileSysDescriptionAttribute.cs
- PackageRelationshipSelector.cs
- PolicyReader.cs
- HttpProcessUtility.cs
- FontDialog.cs
- OrderPreservingMergeHelper.cs
- ControlEvent.cs
- TogglePattern.cs
- DataContractSet.cs
- PersonalizationProviderCollection.cs
- TextParaLineResult.cs
- ManagementEventWatcher.cs
- ClientUtils.cs
- XmlDocumentType.cs
- ProfileSettingsCollection.cs
- MemoryMappedFileSecurity.cs
- SMSvcHost.cs
- OraclePermission.cs
- MobileSysDescriptionAttribute.cs
- Model3DGroup.cs
- WebPartHelpVerb.cs
- EmptyImpersonationContext.cs
- CompensationParticipant.cs
- SqlDataRecord.cs
- DependencyObjectType.cs
- AssociationTypeEmitter.cs
- TabRenderer.cs
- CompilerGlobalScopeAttribute.cs
- QuarticEase.cs
- ToRequest.cs
- DomNameTable.cs
- CardSpaceException.cs
- EntityDataSourceEntityTypeFilterItem.cs
- GlyphingCache.cs
- SmiTypedGetterSetter.cs
- SystemEvents.cs
- MouseBinding.cs
- PrimarySelectionAdorner.cs
- ConfigurationPermission.cs
- ModelTreeEnumerator.cs
- TrustManagerPromptUI.cs
- UrlAuthFailureHandler.cs
- OpCellTreeNode.cs
- WorkflowDesignerMessageFilter.cs
- ListViewItemSelectionChangedEvent.cs
- TimeSpanSecondsConverter.cs
- ButtonFieldBase.cs