Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceResponse.cs / 1305376 / DataServiceResponse.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// data service response to ExecuteBatch & SaveChanges // //--------------------------------------------------------------------- namespace System.Data.Services.Client { using System.Collections.Generic; ////// Data service response to ExecuteBatch & SaveChanges /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1010", Justification = "required for this feature")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710", Justification = "required for this feature")] public sealed class DataServiceResponse : IEnumerable{ /// Http headers of the response. private Dictionaryheaders; /// Http status code of the response. private int statusCode; ///responses private IEnumerableresponse; /// true if this is a batch response, otherwise false. private bool batchResponse; ////// constructor /// /// HTTP headers /// HTTP status code /// list of responses /// true if this represents a batch response, otherwise false. internal DataServiceResponse(Dictionaryheaders, int statusCode, IEnumerable response, bool batchResponse) { this.headers = headers ?? new Dictionary (EqualityComparer .Default); this.statusCode = statusCode; this.batchResponse = batchResponse; this.response = response; } /// Http headers of the response. public IDictionaryBatchHeaders { get { return this.headers; } } /// Http status code of the response. public int BatchStatusCode { get { return this.statusCode; } } ///Returns true if this is a batch response. Otherwise returns false. public bool IsBatchResponse { get { return this.batchResponse; } } ///Responses of a batch query operation. ///The sequence of respones to operation public IEnumeratorGetEnumerator() { return this.response.GetEnumerator(); } /// Get an enumerator for the OperationResponse. ///an enumerator System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return this.GetEnumerator(); } } } // 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
- PasswordRecovery.cs
- HttpModuleAction.cs
- MenuAdapter.cs
- SetStoryboardSpeedRatio.cs
- ACE.cs
- MutexSecurity.cs
- AsymmetricKeyExchangeDeformatter.cs
- RowBinding.cs
- XmlDataSourceDesigner.cs
- XamlSerializationHelper.cs
- DataObjectPastingEventArgs.cs
- ServiceParser.cs
- PhonemeConverter.cs
- SerializableAttribute.cs
- BrowsableAttribute.cs
- GridViewAutomationPeer.cs
- KeyConstraint.cs
- _AcceptOverlappedAsyncResult.cs
- IntPtr.cs
- XmlMembersMapping.cs
- BooleanSwitch.cs
- TextDecorationUnitValidation.cs
- CounterCreationDataCollection.cs
- MaskedTextBoxTextEditorDropDown.cs
- Emitter.cs
- CodeCatchClauseCollection.cs
- nulltextcontainer.cs
- DataGridComponentEditor.cs
- FormViewDeleteEventArgs.cs
- DataGridViewComboBoxCell.cs
- StrongNamePublicKeyBlob.cs
- PTManager.cs
- TextMetrics.cs
- Event.cs
- XmlSchemaImport.cs
- GenerateTemporaryTargetAssembly.cs
- FrameworkContentElement.cs
- XsdDateTime.cs
- ReadWriteSpinLock.cs
- StyleCollection.cs
- Context.cs
- ToolStripLabel.cs
- Descriptor.cs
- DuplicateMessageDetector.cs
- OleDbMetaDataFactory.cs
- XPathNavigator.cs
- SqlConnection.cs
- SHA1Cng.cs
- IntersectQueryOperator.cs
- WebPartManagerInternals.cs
- SqlBulkCopy.cs
- ADConnectionHelper.cs
- Button.cs
- XPathNodePointer.cs
- SolidColorBrush.cs
- DataGridViewCellEventArgs.cs
- DataPagerCommandEventArgs.cs
- CacheDict.cs
- NameValueFileSectionHandler.cs
- Calendar.cs
- ImmComposition.cs
- MediaContext.cs
- ProgressiveCrcCalculatingStream.cs
- ADMembershipProvider.cs
- DbParameterCollectionHelper.cs
- WsatTransactionInfo.cs
- CultureInfo.cs
- PagePropertiesChangingEventArgs.cs
- CancellationScope.cs
- DNS.cs
- AstNode.cs
- SignatureConfirmations.cs
- _CookieModule.cs
- ProfileGroupSettings.cs
- VisualBrush.cs
- Funcletizer.cs
- XhtmlConformanceSection.cs
- BoolExpression.cs
- InternalPermissions.cs
- CursorInteropHelper.cs
- PolyQuadraticBezierSegment.cs
- MailSettingsSection.cs
- CryptoProvider.cs
- PopOutPanel.cs
- NameValueCollection.cs
- EventMappingSettings.cs
- compensatingcollection.cs
- TableCellCollection.cs
- XmlMembersMapping.cs
- XmlDownloadManager.cs
- ViewGenerator.cs
- ControlLocalizer.cs
- XmlElementAttribute.cs
- InfoCardUIAgent.cs
- ThreadSafeList.cs
- HttpProfileGroupBase.cs
- UIElementIsland.cs
- IncrementalReadDecoders.cs
- SrgsRule.cs
- StopStoryboard.cs