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
- CanonicalXml.cs
- SetStoryboardSpeedRatio.cs
- SmtpTransport.cs
- WmiInstallComponent.cs
- SqlClientFactory.cs
- MissingSatelliteAssemblyException.cs
- TouchesOverProperty.cs
- TdsParserStaticMethods.cs
- RewritingPass.cs
- ObjectDataSourceStatusEventArgs.cs
- ADConnectionHelper.cs
- DataGridTextBoxColumn.cs
- TableRowCollection.cs
- AnimationException.cs
- Int64Converter.cs
- Bold.cs
- SmtpMail.cs
- RemoveStoryboard.cs
- Operator.cs
- QueryCacheEntry.cs
- DataSourceNameHandler.cs
- HtmlGenericControl.cs
- PasswordDeriveBytes.cs
- CompilationSection.cs
- DoubleUtil.cs
- CompoundFileStorageReference.cs
- ImageMap.cs
- CatalogZoneBase.cs
- ViewStateModeByIdAttribute.cs
- ContextStaticAttribute.cs
- VisualTreeUtils.cs
- DataRowCollection.cs
- EntityDesignerUtils.cs
- TemplateColumn.cs
- XamlPathDataSerializer.cs
- ListViewCancelEventArgs.cs
- ConfigXmlElement.cs
- TraceHwndHost.cs
- CompoundFileStorageReference.cs
- RepeaterItemCollection.cs
- XmlCharCheckingWriter.cs
- ListViewItem.cs
- WebDescriptionAttribute.cs
- ColumnClickEvent.cs
- StrokeNodeEnumerator.cs
- DesignerCatalogPartChrome.cs
- AuthenticationModuleElement.cs
- DefaultParameterValueAttribute.cs
- Label.cs
- XmlDataImplementation.cs
- MdbDataFileEditor.cs
- ConfigXmlAttribute.cs
- EditorZoneDesigner.cs
- ParameterReplacerVisitor.cs
- RelatedView.cs
- ResXBuildProvider.cs
- BaseCodeDomTreeGenerator.cs
- ProcessStartInfo.cs
- PolyLineSegmentFigureLogic.cs
- ClientFormsIdentity.cs
- XmlDocumentFragment.cs
- ResizeGrip.cs
- InstanceDataCollectionCollection.cs
- AllMembershipCondition.cs
- OracleTimeSpan.cs
- EventProxy.cs
- PageWrapper.cs
- LicenseException.cs
- XmlSchemaDocumentation.cs
- ActiveXContainer.cs
- LoginName.cs
- EntityViewGenerationAttribute.cs
- LocatorPartList.cs
- XsdBuilder.cs
- FontWeights.cs
- XmlCountingReader.cs
- EditingMode.cs
- Menu.cs
- CheckBoxBaseAdapter.cs
- BinaryQueryOperator.cs
- TypeInfo.cs
- TextServicesManager.cs
- KnownBoxes.cs
- ProbeDuplex11AsyncResult.cs
- GridToolTip.cs
- DescendantOverDescendantQuery.cs
- Ray3DHitTestResult.cs
- PerspectiveCamera.cs
- LayoutEngine.cs
- SoapIncludeAttribute.cs
- LongSumAggregationOperator.cs
- StateItem.cs
- ApplicationFileParser.cs
- SamlAdvice.cs
- OrthographicCamera.cs
- CacheVirtualItemsEvent.cs
- InfoCardUIAgent.cs
- DataGridViewCellCancelEventArgs.cs
- TokenFactoryFactory.cs
- SmtpException.cs