Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- // // 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
- XPathDocumentNavigator.cs
- XmlSerializerSection.cs
- ButtonFieldBase.cs
- QilTypeChecker.cs
- Helper.cs
- NamespaceQuery.cs
- WindowsToolbarItemAsMenuItem.cs
- RuntimeConfig.cs
- FormViewPagerRow.cs
- EntityConnection.cs
- MenuAdapter.cs
- WindowsFont.cs
- FixedFindEngine.cs
- DoubleUtil.cs
- CacheEntry.cs
- Size3DConverter.cs
- CellQuery.cs
- TextRange.cs
- ProfilePropertySettings.cs
- ObjectHelper.cs
- QilTernary.cs
- IInstanceTable.cs
- WindowInteractionStateTracker.cs
- XmlSchemaObject.cs
- PictureBox.cs
- DecimalConverter.cs
- OleDbConnectionFactory.cs
- SqlExpressionNullability.cs
- EncodingInfo.cs
- TimelineGroup.cs
- DeadCharTextComposition.cs
- ClassicBorderDecorator.cs
- MailDefinition.cs
- SmtpSection.cs
- Win32.cs
- Statements.cs
- SqlTypesSchemaImporter.cs
- PersistenceMetadataNamespace.cs
- XmlImplementation.cs
- ScrollBarAutomationPeer.cs
- Point3DCollection.cs
- TextBox.cs
- ValidationPropertyAttribute.cs
- Char.cs
- StackOverflowException.cs
- SoapMessage.cs
- SubtreeProcessor.cs
- ThumbButtonInfoCollection.cs
- FormsAuthenticationConfiguration.cs
- FontResourceCache.cs
- Span.cs
- CopyAction.cs
- CompatibleComparer.cs
- DisplayInformation.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SrgsDocumentParser.cs
- brushes.cs
- GlyphRunDrawing.cs
- ExtenderProvidedPropertyAttribute.cs
- DSACryptoServiceProvider.cs
- ElementsClipboardData.cs
- KeyboardDevice.cs
- TemplateField.cs
- ListMarkerLine.cs
- FixedHighlight.cs
- DocumentPageTextView.cs
- ComponentManagerBroker.cs
- BrowserCapabilitiesCodeGenerator.cs
- SafeCoTaskMem.cs
- TargetPerspective.cs
- CompoundFileStorageReference.cs
- HostDesigntimeLicenseContext.cs
- ContentType.cs
- ViewStateException.cs
- DataGridViewColumnCollection.cs
- NameScope.cs
- OpenTypeLayout.cs
- RegexCompiler.cs
- TextFormattingConverter.cs
- BeginStoryboard.cs
- MultiBindingExpression.cs
- SubqueryRules.cs
- DataTemplateSelector.cs
- NoneExcludedImageIndexConverter.cs
- SqlErrorCollection.cs
- RowSpanVector.cs
- Point3DConverter.cs
- TrustLevelCollection.cs
- MimeMultiPart.cs
- RoleManagerSection.cs
- ThaiBuddhistCalendar.cs
- FormViewDesigner.cs
- ReferencedCollectionType.cs
- EditorResources.cs
- ResourcePool.cs
- Expander.cs
- ListChangedEventArgs.cs
- HebrewNumber.cs
- ElementProxy.cs
- Switch.cs