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
- ButtonFieldBase.cs
- SID.cs
- PenThreadPool.cs
- SHA384Cng.cs
- cookiecontainer.cs
- HttpCachePolicyElement.cs
- AutomationEventArgs.cs
- ZoneButton.cs
- ParenthesizePropertyNameAttribute.cs
- MessageSmuggler.cs
- OracleCommand.cs
- ListViewItem.cs
- TableMethodGenerator.cs
- BatchStream.cs
- AttachmentService.cs
- SrgsRulesCollection.cs
- IntermediatePolicyValidator.cs
- WmlTextViewAdapter.cs
- WebPartConnectionsCancelVerb.cs
- PeerSecurityHelpers.cs
- ConsoleKeyInfo.cs
- WindowsListViewItemCheckBox.cs
- DataGridViewCellValidatingEventArgs.cs
- SendMailErrorEventArgs.cs
- TextSelectionHelper.cs
- PropertyIdentifier.cs
- GeneralTransform3DTo2D.cs
- PropertyChangingEventArgs.cs
- ImageBrush.cs
- SQLInt16Storage.cs
- DbgUtil.cs
- IPPacketInformation.cs
- ExtensionSimplifierMarkupObject.cs
- Transform3DCollection.cs
- CompModSwitches.cs
- FixUp.cs
- SoapInteropTypes.cs
- RelationshipDetailsCollection.cs
- BindingMAnagerBase.cs
- OutputCacheSettingsSection.cs
- AesManaged.cs
- AttributeQuery.cs
- OutputCacheProfile.cs
- SendMailErrorEventArgs.cs
- ParserStreamGeometryContext.cs
- ElapsedEventArgs.cs
- CommonDialog.cs
- TraceUtils.cs
- EnvelopedPkcs7.cs
- TextBlock.cs
- ObjectItemConventionAssemblyLoader.cs
- PerspectiveCamera.cs
- TableCell.cs
- LogArchiveSnapshot.cs
- LeftCellWrapper.cs
- SpecialFolderEnumConverter.cs
- PageParserFilter.cs
- XmlTextEncoder.cs
- GZipDecoder.cs
- MultiDataTrigger.cs
- XamlRtfConverter.cs
- XPathNodeIterator.cs
- ConversionContext.cs
- HttpProfileGroupBase.cs
- InheritanceRules.cs
- ExceptionWrapper.cs
- TransformationRules.cs
- WorkflowRuntimeService.cs
- DynamicILGenerator.cs
- StickyNote.cs
- x509utils.cs
- TextEffectCollection.cs
- ToolStripItem.cs
- InputElement.cs
- WebPartConnectionsConnectVerb.cs
- ExeConfigurationFileMap.cs
- CommandSet.cs
- XmlAutoDetectWriter.cs
- PrincipalPermission.cs
- Config.cs
- ComboBoxRenderer.cs
- SQLGuid.cs
- LazyTextWriterCreator.cs
- TransportContext.cs
- ProfileBuildProvider.cs
- Span.cs
- ReadWriteSpinLock.cs
- AnnotationResourceChangedEventArgs.cs
- TextBoxBase.cs
- XPathNode.cs
- Interlocked.cs
- DbCommandDefinition.cs
- StaticResourceExtension.cs
- SubMenuStyleCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- ColorKeyFrameCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- QueryOptionExpression.cs
- RoutedUICommand.cs
- CopyNamespacesAction.cs