Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceRequestOfT.cs / 1305376 / DataServiceRequestOfT.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// typed request object // //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System; using System.Diagnostics; #endregion Namespaces. ////// Holds a Uri and type for the request. /// ///The type to construct for the request results public sealed class DataServiceRequest: DataServiceRequest { #region Private fields. /// The UriTranslateResult for the request private readonly QueryComponents queryComponents; ///The ProjectionPlan for the request (if precompiled in a previous page). private readonly ProjectionPlan plan; #endregion Private fields. #region Constructors. ///Create a request for a specific Uri /// The URI for the request. public DataServiceRequest(Uri requestUri) { Util.CheckArgumentNull(requestUri, "requestUri"); Type elementType = typeof(TElement); elementType = ClientConvert.IsKnownType(elementType) ? elementType : TypeSystem.GetElementType(elementType); this.queryComponents = new QueryComponents(requestUri, Util.DataServiceVersionEmpty, elementType, null, null); } ///Create a request for a specific Uri /// The query components for the request /// Projection plan to reuse (possibly null). internal DataServiceRequest(QueryComponents queryComponents, ProjectionPlan plan) { Debug.Assert(queryComponents != null, "queryComponents != null"); this.queryComponents = queryComponents; this.plan = plan; } #endregion Constructors. ///Element Type public override Type ElementType { get { return typeof(TElement); } } ///The URI for the request. public override Uri RequestUri { get { return this.queryComponents.Uri; } } ///The ProjectionPlan for the request, if precompiled in a previous page; null otherwise. internal override ProjectionPlan Plan { get { return this.plan; } } ///The TranslateResult associated with this request internal override QueryComponents QueryComponents { get { return this.queryComponents; } } } } // 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
- ListControlBoundActionList.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ServiceOperationListItem.cs
- CodeAttributeArgument.cs
- AggregatePushdown.cs
- CustomAttribute.cs
- DataGridSortCommandEventArgs.cs
- EnvironmentPermission.cs
- DependencyPropertyChangedEventArgs.cs
- IntranetCredentialPolicy.cs
- ListView.cs
- DataFormat.cs
- DesignTimeTemplateParser.cs
- BinaryNode.cs
- validationstate.cs
- MILUtilities.cs
- categoryentry.cs
- XmlWhitespace.cs
- InkPresenter.cs
- EdgeProfileValidation.cs
- DataViewSetting.cs
- FixedSOMLineRanges.cs
- JoinTreeSlot.cs
- QuaternionKeyFrameCollection.cs
- MediaSystem.cs
- BindingContext.cs
- _Rfc2616CacheValidators.cs
- SrgsDocument.cs
- ServiceControllerDesigner.cs
- CompoundFileDeflateTransform.cs
- ButtonPopupAdapter.cs
- AutomationElement.cs
- PhysicalFontFamily.cs
- FactoryRecord.cs
- SqlUserDefinedAggregateAttribute.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- QuaternionRotation3D.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- MarshalDirectiveException.cs
- XamlToRtfParser.cs
- WebPartExportVerb.cs
- TrustLevelCollection.cs
- ResponseBodyWriter.cs
- UnknownWrapper.cs
- DataErrorValidationRule.cs
- KeyConverter.cs
- ToolStripArrowRenderEventArgs.cs
- NativeWindow.cs
- TraceContextEventArgs.cs
- PerfProviderCollection.cs
- DiscoveryClientDuplexChannel.cs
- DataGridViewColumn.cs
- FrameworkElementAutomationPeer.cs
- SamlAudienceRestrictionCondition.cs
- XhtmlBasicImageAdapter.cs
- TypeViewSchema.cs
- MultiBindingExpression.cs
- HttpNamespaceReservationInstallComponent.cs
- PartialClassGenerationTaskInternal.cs
- CompilerErrorCollection.cs
- ComplexTypeEmitter.cs
- EventRoute.cs
- ScrollProviderWrapper.cs
- DisposableCollectionWrapper.cs
- GraphicsContainer.cs
- CoTaskMemHandle.cs
- CanonicalFormWriter.cs
- CurrentChangedEventManager.cs
- XmlEncodedRawTextWriter.cs
- FileCodeGroup.cs
- DataGridCaption.cs
- SourceItem.cs
- EventData.cs
- ParagraphVisual.cs
- Separator.cs
- RecommendedAsConfigurableAttribute.cs
- Identifier.cs
- DataControlButton.cs
- ParseElementCollection.cs
- FillRuleValidation.cs
- mediaeventshelper.cs
- XmlQueryTypeFactory.cs
- FaultDesigner.cs
- DataSourceControlBuilder.cs
- KeyFrames.cs
- EditableTreeList.cs
- ExecutionContext.cs
- ObservableCollection.cs
- BaseParser.cs
- TreeNodeSelectionProcessor.cs
- QueryRewriter.cs
- TypeConstant.cs
- DataKey.cs
- HeaderLabel.cs
- MetadataArtifactLoaderCompositeResource.cs
- DoubleAnimationClockResource.cs
- MatrixCamera.cs
- VectorAnimationBase.cs
- URLIdentityPermission.cs
- EntityException.cs