Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / QueryOperationResponseOfT.cs / 1305376 / QueryOperationResponseOfT.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Response to a batched query. // //--------------------------------------------------------------------- namespace System.Data.Services.Client { #region Namespaces. using System.Collections.Generic; using System.Linq; #endregion Namespaces. ////// Response to a batched query. /// ///The type to construct for the request results [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710", Justification = "required for this feature")] public sealed class QueryOperationResponse: QueryOperationResponse, IEnumerable { #region Constructors. /// /// constructor /// /// HTTP headers /// original query /// retrieved objects internal QueryOperationResponse(Dictionaryheaders, DataServiceRequest query, MaterializeAtom results) : base(headers, query, results) { } #endregion Constructors. #region Public properties. /// /// The server Result Set Count value from a query, if the query has requested the value /// ////// The return value can be either a zero or positive value equals to number of entities in the set on the server /// ////// Is thrown when count was not part of the original request, i.e., if the count tag is not found in the response stream. /// public override long TotalCount { get { if (this.Results != null && !this.Results.IsEmptyResults) { return this.Results.CountValue(); } else { throw new InvalidOperationException(Strings.MaterializeFromAtom_CountNotPresent); } } } #endregion Public properties. #region Public methods. ////// Gets the continuation for the top level data stream associated with this response object /// ///A continuation that points to the next page for the current data stream in the response. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "required for this feature")] public new DataServiceQueryContinuationGetContinuation() { return (DataServiceQueryContinuation )base.GetContinuation(); } /// Results from a query ///enumerator of objects in query public new IEnumeratorGetEnumerator() { return this.Results.Cast ().GetEnumerator(); } #endregion Public methods. } } // 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
- CdpEqualityComparer.cs
- StrongNameKeyPair.cs
- TableParagraph.cs
- GAC.cs
- InfoCard.cs
- RayMeshGeometry3DHitTestResult.cs
- SchemaCreator.cs
- Tablet.cs
- CqlLexer.cs
- ParserContext.cs
- QueryResponse.cs
- Method.cs
- TextOnlyOutput.cs
- TextDecorationCollection.cs
- CompilationSection.cs
- Stackframe.cs
- DetailsViewRow.cs
- WebConfigurationFileMap.cs
- SchemaImporterExtension.cs
- CodeMemberProperty.cs
- DotAtomReader.cs
- BitmapFrameDecode.cs
- TextStore.cs
- GeometryHitTestResult.cs
- SimplePropertyEntry.cs
- Figure.cs
- COM2ExtendedUITypeEditor.cs
- KeyValuePair.cs
- TargetPerspective.cs
- JsonObjectDataContract.cs
- AssemblyNameProxy.cs
- FrameworkContentElement.cs
- ConsumerConnectionPoint.cs
- HttpStaticObjectsCollectionBase.cs
- SQLInt64.cs
- GeneralTransform3DTo2DTo3D.cs
- HMACSHA384.cs
- RectangleF.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XmlILOptimizerVisitor.cs
- Models.cs
- TypeResolver.cs
- DataServiceQueryProvider.cs
- ApplyImportsAction.cs
- IERequestCache.cs
- UnsettableComboBox.cs
- ServiceModelConfigurationSectionGroup.cs
- SemaphoreSecurity.cs
- ZipPackagePart.cs
- ColumnResult.cs
- SafePEFileHandle.cs
- KnownTypesProvider.cs
- TokenCreationParameter.cs
- WithStatement.cs
- ValidationErrorCollection.cs
- WebZone.cs
- FileInfo.cs
- DateTimeOffsetAdapter.cs
- RbTree.cs
- SqlNamer.cs
- ListSourceHelper.cs
- AbstractSvcMapFileLoader.cs
- IriParsingElement.cs
- Switch.cs
- XmlTextReaderImplHelpers.cs
- MissingManifestResourceException.cs
- TemplateContainer.cs
- ByteRangeDownloader.cs
- CodeComment.cs
- CombinedHttpChannel.cs
- FormView.cs
- DBPropSet.cs
- TrustDriver.cs
- TextParagraphProperties.cs
- SoapMessage.cs
- WebScriptEnablingElement.cs
- MessageRpc.cs
- NativeMethods.cs
- BuilderPropertyEntry.cs
- RuntimeConfigLKG.cs
- MSAAEventDispatcher.cs
- MultiAsyncResult.cs
- ContainerCodeDomSerializer.cs
- SerialPort.cs
- MSAANativeProvider.cs
- TextEditorTyping.cs
- TableAutomationPeer.cs
- ControlValuePropertyAttribute.cs
- EdmProperty.cs
- RectangleConverter.cs
- WorkflowInvoker.cs
- CommonGetThemePartSize.cs
- ModuleElement.cs
- WpfSharedBamlSchemaContext.cs
- EarlyBoundInfo.cs
- CatalogZone.cs
- ToolStripGripRenderEventArgs.cs
- ChoiceConverter.cs
- CodePropertyReferenceExpression.cs
- ToolStripPanelRenderEventArgs.cs