Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AuthenticatingEventArgs.cs
- LogReserveAndAppendState.cs
- RenderCapability.cs
- TemplateBindingExpressionConverter.cs
- SrgsRuleRef.cs
- CustomExpressionEventArgs.cs
- LinqDataSourceSelectEventArgs.cs
- SignatureDescription.cs
- ContactManager.cs
- StrongName.cs
- RequiredFieldValidator.cs
- LineGeometry.cs
- StaticExtensionConverter.cs
- FontStyle.cs
- AuthenticationService.cs
- ChannelManager.cs
- ArraySegment.cs
- DbDataRecord.cs
- CanExecuteRoutedEventArgs.cs
- LoadWorkflowAsyncResult.cs
- SqlDataSourceCommandEventArgs.cs
- SerializationObjectManager.cs
- RegistryKey.cs
- DecimalAnimationBase.cs
- DataServiceException.cs
- XmlAttributes.cs
- HtmlInputFile.cs
- CopyNamespacesAction.cs
- ConnectionInterfaceCollection.cs
- AsyncOperation.cs
- RefreshEventArgs.cs
- BezierSegment.cs
- ProxyWebPart.cs
- DataTableCollection.cs
- DataGridLinkButton.cs
- IPAddressCollection.cs
- QueryOutputWriter.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- _RequestLifetimeSetter.cs
- PermissionSetTriple.cs
- ResolveCompletedEventArgs.cs
- SmtpException.cs
- ProjectionPath.cs
- WebPartVerbsEventArgs.cs
- GraphicsContext.cs
- figurelength.cs
- Membership.cs
- CloudCollection.cs
- OdbcUtils.cs
- BrowserCapabilitiesFactory.cs
- SchemaDeclBase.cs
- ProcessHostFactoryHelper.cs
- FixedSOMTable.cs
- XamlReaderConstants.cs
- DomainConstraint.cs
- CssClassPropertyAttribute.cs
- XmlBindingWorker.cs
- ObservableCollection.cs
- ServiceDiscoveryElement.cs
- BooleanToVisibilityConverter.cs
- XmlSiteMapProvider.cs
- BlurEffect.cs
- EventWaitHandle.cs
- RectAnimationUsingKeyFrames.cs
- NonSerializedAttribute.cs
- ListDataBindEventArgs.cs
- RoleGroupCollection.cs
- ConversionContext.cs
- DbException.cs
- TdsParser.cs
- PerformanceCounterCategory.cs
- Rotation3DAnimationBase.cs
- DeadCharTextComposition.cs
- WsatServiceAddress.cs
- TreeNodeStyleCollection.cs
- InternalRelationshipCollection.cs
- CuspData.cs
- SchemaObjectWriter.cs
- sqlnorm.cs
- SQLBytes.cs
- SimpleHandlerFactory.cs
- DefaultHttpHandler.cs
- DragEventArgs.cs
- MessageSmuggler.cs
- WebPartHelpVerb.cs
- SmtpCommands.cs
- WebPartAddingEventArgs.cs
- NavigationEventArgs.cs
- LogicalExpr.cs
- SignedXml.cs
- CompiledQueryCacheKey.cs
- Matrix3DStack.cs
- ProcessModelInfo.cs
- ControllableStoryboardAction.cs
- EncryptedXml.cs
- path.cs
- ErrorProvider.cs
- TokenBasedSet.cs
- FixUp.cs
- FixUp.cs