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
- MaskDesignerDialog.cs
- Validator.cs
- IndicCharClassifier.cs
- CodeEventReferenceExpression.cs
- KnowledgeBase.cs
- PreProcessor.cs
- XmlRootAttribute.cs
- XmlRootAttribute.cs
- FlowDocument.cs
- TextSelection.cs
- CommonGetThemePartSize.cs
- UserPreferenceChangingEventArgs.cs
- Msec.cs
- AddInAdapter.cs
- ReaderWriterLockWrapper.cs
- ProxyWebPart.cs
- ErrorStyle.cs
- MessagingDescriptionAttribute.cs
- ControlOperationBehavior.cs
- TerminatorSinks.cs
- ConsumerConnectionPoint.cs
- HttpGetClientProtocol.cs
- XPathChildIterator.cs
- ByteStorage.cs
- Util.cs
- TrustManager.cs
- ArgumentNullException.cs
- TableParaClient.cs
- ArithmeticException.cs
- CompleteWizardStep.cs
- KeyConverter.cs
- SHA1CryptoServiceProvider.cs
- CompressEmulationStream.cs
- JsonSerializer.cs
- OdbcConnection.cs
- Membership.cs
- EntityConnection.cs
- CompoundFileStorageReference.cs
- NegationPusher.cs
- DocumentCollection.cs
- ValidationSummary.cs
- LinkedList.cs
- ApplicationDirectory.cs
- UserControlDesigner.cs
- SqlNamer.cs
- TraceContextEventArgs.cs
- TextEffectCollection.cs
- MultipleViewProviderWrapper.cs
- FilteredDataSetHelper.cs
- TCEAdapterGenerator.cs
- SqlCacheDependencyDatabaseCollection.cs
- WebBrowserNavigatedEventHandler.cs
- WSHttpBindingCollectionElement.cs
- RtfControls.cs
- SecureConversationServiceElement.cs
- OletxCommittableTransaction.cs
- FontCollection.cs
- Descriptor.cs
- DataBinding.cs
- AuthenticationModulesSection.cs
- WebPartTracker.cs
- AttachInfo.cs
- XamlTreeBuilder.cs
- Animatable.cs
- exports.cs
- SchemaImporterExtensionsSection.cs
- RemotingConfiguration.cs
- BrowserDefinition.cs
- BaseUriHelper.cs
- SystemUdpStatistics.cs
- TextEndOfLine.cs
- FillRuleValidation.cs
- _NegoStream.cs
- OdbcParameterCollection.cs
- ColorIndependentAnimationStorage.cs
- TextEditorTables.cs
- OledbConnectionStringbuilder.cs
- BinaryUtilClasses.cs
- infer.cs
- BaseCAMarshaler.cs
- ApplicationCommands.cs
- StorageBasedPackageProperties.cs
- ArrayMergeHelper.cs
- BitmapImage.cs
- DataGridCell.cs
- RuntimeConfigLKG.cs
- LogArchiveSnapshot.cs
- Select.cs
- FormParameter.cs
- AggregateNode.cs
- MenuEventArgs.cs
- AssemblyAttributesGoHere.cs
- ActivationServices.cs
- UserInitiatedNavigationPermission.cs
- ColumnReorderedEventArgs.cs
- GreenMethods.cs
- XmlSerializerOperationGenerator.cs
- CopyOnWriteList.cs
- DataRecordInternal.cs
- EmptyElement.cs