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
- PeerInvitationResponse.cs
- WorkflowServiceAttributes.cs
- Int64AnimationBase.cs
- FloatUtil.cs
- AppSecurityManager.cs
- DesignerDataTable.cs
- DocumentAutomationPeer.cs
- BrowserDefinitionCollection.cs
- Region.cs
- DataSourceSelectArguments.cs
- AssemblyAttributesGoHere.cs
- Queue.cs
- DelegatingTypeDescriptionProvider.cs
- EncoderFallback.cs
- Privilege.cs
- TypeConverterAttribute.cs
- SystemSounds.cs
- WebConvert.cs
- AssemblyInfo.cs
- StylusPointCollection.cs
- TemplateXamlTreeBuilder.cs
- ProcessHostConfigUtils.cs
- UndoManager.cs
- Triangle.cs
- FormViewActionList.cs
- SystemIPAddressInformation.cs
- cryptoapiTransform.cs
- AttributeQuery.cs
- HwndSourceKeyboardInputSite.cs
- DeflateStreamAsyncResult.cs
- DataSetMappper.cs
- PackageDigitalSignature.cs
- Int32Storage.cs
- ResourceReferenceKeyNotFoundException.cs
- FontStyleConverter.cs
- ContextMarshalException.cs
- DynamicResourceExtensionConverter.cs
- DbCommandTree.cs
- TrackingStringDictionary.cs
- RegexGroup.cs
- BoolExpressionVisitors.cs
- SamlAdvice.cs
- PerspectiveCamera.cs
- UseAttributeSetsAction.cs
- IdnElement.cs
- SiteMapNode.cs
- Stack.cs
- UdpDiscoveryEndpoint.cs
- TextParagraphCache.cs
- DbConnectionPoolIdentity.cs
- TemplatedWizardStep.cs
- ComponentRenameEvent.cs
- MultitargetingHelpers.cs
- NotConverter.cs
- TextEditorThreadLocalStore.cs
- MissingMethodException.cs
- DataGridViewBand.cs
- ParameterElementCollection.cs
- FilterQueryOptionExpression.cs
- ProviderUtil.cs
- GestureRecognitionResult.cs
- FormatConvertedBitmap.cs
- MemberInitExpression.cs
- DependencyPropertyKey.cs
- DbBuffer.cs
- TraceUtility.cs
- ArrayTypeMismatchException.cs
- CompilationSection.cs
- BaseTemplateParser.cs
- ContentValidator.cs
- HandlerBase.cs
- RelationshipEnd.cs
- WindowsClaimSet.cs
- QilUnary.cs
- RegexReplacement.cs
- EntityProviderServices.cs
- UInt16Converter.cs
- DataListItemEventArgs.cs
- PeerTransportListenAddressValidatorAttribute.cs
- _ShellExpression.cs
- AutomationPatternInfo.cs
- WrapperSecurityCommunicationObject.cs
- SmtpNegotiateAuthenticationModule.cs
- SqlRemoveConstantOrderBy.cs
- ProjectionQueryOptionExpression.cs
- EFAssociationProvider.cs
- DBSqlParserTable.cs
- SetState.cs
- ToolStripContainer.cs
- DurableInstancingOptions.cs
- TemplatedWizardStep.cs
- SqlConnectionPoolProviderInfo.cs
- DoubleConverter.cs
- DataSourceConverter.cs
- SmtpTransport.cs
- OrderedDictionary.cs
- HttpListenerResponse.cs
- WebServiceParameterData.cs
- bidPrivateBase.cs
- PartialToken.cs