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
- DataSysAttribute.cs
- NonNullItemCollection.cs
- Drawing.cs
- CardSpaceSelector.cs
- SourceFileBuildProvider.cs
- FillRuleValidation.cs
- SelectedGridItemChangedEvent.cs
- CustomErrorCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- ContextConfiguration.cs
- autovalidator.cs
- Processor.cs
- SaveFileDialog.cs
- Point3DAnimationBase.cs
- JournalEntryStack.cs
- Compiler.cs
- PeerNearMe.cs
- IWorkflowDebuggerService.cs
- CompositeTypefaceMetrics.cs
- FromReply.cs
- UnionExpr.cs
- IsolatedStoragePermission.cs
- TraversalRequest.cs
- MenuItem.cs
- EllipseGeometry.cs
- ApplicationCommands.cs
- DrawingDrawingContext.cs
- LayoutTable.cs
- ParserExtension.cs
- xamlnodes.cs
- SqlProfileProvider.cs
- BufferedReceiveElement.cs
- ConfigurationPropertyCollection.cs
- Ticks.cs
- NativeMethods.cs
- ApplicationProxyInternal.cs
- ReflectEventDescriptor.cs
- ExtensionQuery.cs
- TrackingStringDictionary.cs
- PasswordBoxAutomationPeer.cs
- OverflowException.cs
- Guid.cs
- ResourceKey.cs
- counter.cs
- RotateTransform.cs
- AssertSection.cs
- IntSecurity.cs
- ObjectDataSourceEventArgs.cs
- SmiXetterAccessMap.cs
- Rotation3DAnimation.cs
- View.cs
- StrokeNodeData.cs
- InputScopeManager.cs
- DiagnosticStrings.cs
- AppDomainInfo.cs
- DataGridComponentEditor.cs
- DeclarativeCatalogPart.cs
- InternalPolicyElement.cs
- XmlConvert.cs
- FieldNameLookup.cs
- TrackingValidationObjectDictionary.cs
- OutputCacheSettings.cs
- SafeRightsManagementQueryHandle.cs
- CSharpCodeProvider.cs
- WebPart.cs
- DataGridViewBand.cs
- NumericUpDownAcceleration.cs
- XPathNavigator.cs
- StructuredCompositeActivityDesigner.cs
- NativeMethods.cs
- PropertyGridEditorPart.cs
- AuthenticatingEventArgs.cs
- TransactionState.cs
- EditorZone.cs
- Int32RectConverter.cs
- GiveFeedbackEvent.cs
- PointAnimationUsingKeyFrames.cs
- Table.cs
- CommandID.cs
- WebScriptEndpoint.cs
- ExtendedPropertyDescriptor.cs
- DropAnimation.xaml.cs
- UpdatePanelTrigger.cs
- Comparer.cs
- HttpResponseHeader.cs
- FindCriteriaElement.cs
- DateTimeConverter.cs
- TransformCollection.cs
- SecurityVerifiedMessage.cs
- InfoCard.cs
- SoapCodeExporter.cs
- XmlSchemaRedefine.cs
- Visual3D.cs
- SspiNegotiationTokenProvider.cs
- InternalSafeNativeMethods.cs
- SimpleWebHandlerParser.cs
- RegisteredExpandoAttribute.cs
- CodeExporter.cs
- InputMethodStateChangeEventArgs.cs
- C14NUtil.cs