Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
- Relationship.cs
- HttpValueCollection.cs
- ExpressionBuilderCollection.cs
- CollectionBuilder.cs
- WSHttpBindingBase.cs
- XmlBinaryReader.cs
- SrgsGrammarCompiler.cs
- SortKey.cs
- odbcmetadatafactory.cs
- SoapObjectReader.cs
- DaylightTime.cs
- ParenthesizePropertyNameAttribute.cs
- BeginStoryboard.cs
- XamlTreeBuilder.cs
- ServiceHost.cs
- ExpressionWriter.cs
- DataContractSerializerElement.cs
- ColorAnimationUsingKeyFrames.cs
- SparseMemoryStream.cs
- PopOutPanel.cs
- MetadataUtil.cs
- _UriSyntax.cs
- ListView.cs
- SqlAliaser.cs
- GenericIdentity.cs
- ResolvedKeyFrameEntry.cs
- XsltContext.cs
- EmbeddedMailObjectsCollection.cs
- NetNamedPipeBinding.cs
- webeventbuffer.cs
- _HTTPDateParse.cs
- CopyAttributesAction.cs
- StringAnimationBase.cs
- AssertUtility.cs
- unsafeIndexingFilterStream.cs
- ServiceOperationParameter.cs
- AppDomainUnloadedException.cs
- GeneralTransform3DCollection.cs
- WebExceptionStatus.cs
- KeyPressEvent.cs
- Color.cs
- NavigatorOutput.cs
- ErrorHandler.cs
- DefaultValueMapping.cs
- FacetEnabledSchemaElement.cs
- AnimationException.cs
- XmlChoiceIdentifierAttribute.cs
- CatalogZoneDesigner.cs
- NullableIntMinMaxAggregationOperator.cs
- Resources.Designer.cs
- brushes.cs
- StringConverter.cs
- DoubleAnimationBase.cs
- IteratorFilter.cs
- NativeMethods.cs
- FixedTextSelectionProcessor.cs
- PreviewPageInfo.cs
- RowToFieldTransformer.cs
- TryCatch.cs
- DeferrableContentConverter.cs
- FormView.cs
- ValueProviderWrapper.cs
- WrappedDispatcherException.cs
- SortedSetDebugView.cs
- ChildrenQuery.cs
- OutputScope.cs
- DataListComponentEditor.cs
- CodeTypeReference.cs
- WindowsTooltip.cs
- Setter.cs
- AlignmentXValidation.cs
- TableRowCollection.cs
- JapaneseLunisolarCalendar.cs
- DataListItemEventArgs.cs
- SqlCaseSimplifier.cs
- DocumentReference.cs
- WindowsGraphics2.cs
- MdiWindowListStrip.cs
- QueryAccessibilityHelpEvent.cs
- SqlFlattener.cs
- InternalRelationshipCollection.cs
- BamlRecordHelper.cs
- Int64Converter.cs
- CacheChildrenQuery.cs
- WebBrowserUriTypeConverter.cs
- DataGridItemCollection.cs
- ChannelSinkStacks.cs
- NameSpaceExtractor.cs
- HopperCache.cs
- AudienceUriMode.cs
- AsyncCallback.cs
- AutomationPatternInfo.cs
- DataGridViewRowPostPaintEventArgs.cs
- _NegotiateClient.cs
- Attribute.cs
- LogPolicy.cs
- MobileContainerDesigner.cs
- LiteralTextContainerControlBuilder.cs
- WebPartZoneCollection.cs
- CodeFieldReferenceExpression.cs