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
- Maps.cs
- IDispatchConstantAttribute.cs
- DateTimeOffset.cs
- TypeInformation.cs
- DefaultPrintController.cs
- StylusPointPropertyUnit.cs
- TreeView.cs
- ModulesEntry.cs
- SerializableAttribute.cs
- RuntimeUtils.cs
- SimpleWebHandlerParser.cs
- NamedPipeDuplicateContext.cs
- CallbackHandler.cs
- ToolstripProfessionalRenderer.cs
- ColumnBinding.cs
- SQLStringStorage.cs
- Separator.cs
- SqlCacheDependency.cs
- ClientRuntimeConfig.cs
- AssemblyNameUtility.cs
- XmlNavigatorStack.cs
- Empty.cs
- EFAssociationProvider.cs
- WindowsToolbarAsMenu.cs
- PackWebResponse.cs
- RowToFieldTransformer.cs
- ApplicationContext.cs
- PackWebRequestFactory.cs
- BaseTemplateParser.cs
- CryptoApi.cs
- ProjectedWrapper.cs
- MetadataArtifactLoaderCompositeResource.cs
- ReflectTypeDescriptionProvider.cs
- XmlILConstructAnalyzer.cs
- WebConfigurationHostFileChange.cs
- Thread.cs
- CheckBoxFlatAdapter.cs
- AssemblyAttributes.cs
- RemoteWebConfigurationHostStream.cs
- InstalledFontCollection.cs
- Tool.cs
- SystemIcmpV4Statistics.cs
- SurrogateDataContract.cs
- CachedFontFamily.cs
- BuildTopDownAttribute.cs
- InboundActivityHelper.cs
- SqlConnection.cs
- SchemaSetCompiler.cs
- PerformanceCounterManager.cs
- TextSelectionHighlightLayer.cs
- Scene3D.cs
- ConstrainedDataObject.cs
- PenLineJoinValidation.cs
- OleDbPropertySetGuid.cs
- UrlPath.cs
- GridViewSelectEventArgs.cs
- CapabilitiesAssignment.cs
- DataGridRowDetailsEventArgs.cs
- PropertyItem.cs
- DataGridViewColumnTypePicker.cs
- XPathSelfQuery.cs
- Switch.cs
- ServiceOperationParameter.cs
- MediaCommands.cs
- ClientBase.cs
- XsdBuildProvider.cs
- BadImageFormatException.cs
- StickyNoteAnnotations.cs
- DataServiceQueryContinuation.cs
- Style.cs
- ChtmlImageAdapter.cs
- IImplicitResourceProvider.cs
- XmlDataSourceView.cs
- CertificateManager.cs
- VarRemapper.cs
- FilterQuery.cs
- ProfileService.cs
- SmtpDigestAuthenticationModule.cs
- AttachmentService.cs
- SocketException.cs
- Style.cs
- CryptoApi.cs
- LabelLiteral.cs
- TemplateField.cs
- XmlSchemaSubstitutionGroup.cs
- StringToken.cs
- DefaultValidator.cs
- DirectionalLight.cs
- SourceCollection.cs
- ViewStateModeByIdAttribute.cs
- PixelShader.cs
- ConfigXmlAttribute.cs
- PathParser.cs
- ReadWriteSpinLock.cs
- BitmapMetadataBlob.cs
- HttpCapabilitiesBase.cs
- CodeDomSerializerBase.cs
- ListViewContainer.cs
- MetadataCache.cs
- SqlDataSourceCustomCommandEditor.cs