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
- InfoCardKeyedHashAlgorithm.cs
- WindowsEditBoxRange.cs
- Base64Encoder.cs
- XsdSchemaFileEditor.cs
- DataReaderContainer.cs
- HttpCapabilitiesEvaluator.cs
- ScriptingSectionGroup.cs
- EmbeddedMailObjectCollectionEditor.cs
- FixedPageAutomationPeer.cs
- HostingEnvironmentSection.cs
- MediaTimeline.cs
- LineProperties.cs
- ShaderEffect.cs
- BypassElement.cs
- ApplicationBuildProvider.cs
- ToolBarTray.cs
- DataGridViewAccessibleObject.cs
- CodeConditionStatement.cs
- Utils.cs
- Policy.cs
- SecurityTokenValidationException.cs
- Solver.cs
- __Error.cs
- UIHelper.cs
- HttpResponse.cs
- ComAdminWrapper.cs
- RangeValuePatternIdentifiers.cs
- Pair.cs
- RootProfilePropertySettingsCollection.cs
- CommonObjectSecurity.cs
- MobileControlsSectionHelper.cs
- COMException.cs
- System.Data.OracleClient_BID.cs
- XmlEventCache.cs
- TextBoxAutomationPeer.cs
- CmsUtils.cs
- DataBindingHandlerAttribute.cs
- FilteredAttributeCollection.cs
- Queue.cs
- SymbolMethod.cs
- ServiceModelSecurityTokenTypes.cs
- ProfileSettingsCollection.cs
- ControlUtil.cs
- DataControlFieldTypeEditor.cs
- SqlTriggerAttribute.cs
- SmiConnection.cs
- CompilationUtil.cs
- Vector3DAnimationBase.cs
- WSDualHttpBindingCollectionElement.cs
- OletxCommittableTransaction.cs
- _Win32.cs
- relpropertyhelper.cs
- TreeNodeBindingCollection.cs
- ISO2022Encoding.cs
- GroupItemAutomationPeer.cs
- ValueProviderWrapper.cs
- WebPartUtil.cs
- PersonalizationProviderCollection.cs
- sqlmetadatafactory.cs
- ActiveXContainer.cs
- CriticalFinalizerObject.cs
- MembershipValidatePasswordEventArgs.cs
- XmlEventCache.cs
- _NegoStream.cs
- ViewStateAttachedPropertyFeature.cs
- RecognitionEventArgs.cs
- OleDbStruct.cs
- MemberAssignmentAnalysis.cs
- LineBreak.cs
- WindowInteropHelper.cs
- MediaPlayerState.cs
- InternalSafeNativeMethods.cs
- MimeXmlReflector.cs
- CompilerParameters.cs
- SchemaInfo.cs
- ToRequest.cs
- WhitespaceRule.cs
- RightsManagementEncryptionTransform.cs
- DispatchProxy.cs
- lengthconverter.cs
- FormsAuthenticationTicket.cs
- HttpBufferlessInputStream.cs
- DataGridViewBand.cs
- RegistrySecurity.cs
- StylusPointPropertyUnit.cs
- OleDbError.cs
- Configuration.cs
- XmlException.cs
- XmlCharacterData.cs
- DefaultPerformanceCounters.cs
- SplitterEvent.cs
- TableRowCollection.cs
- CommandPlan.cs
- InstanceCollisionException.cs
- GuidelineCollection.cs
- AsyncOperationContext.cs
- ToolConsole.cs
- _ContextAwareResult.cs
- ResourcesChangeInfo.cs
- TablePatternIdentifiers.cs