Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------- //// 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
- DataIdProcessor.cs
- RuntimeEnvironment.cs
- ArglessEventHandlerProxy.cs
- UnknownBitmapDecoder.cs
- _SingleItemRequestCache.cs
- TypeBuilder.cs
- CodeArrayIndexerExpression.cs
- MyContact.cs
- WeakRefEnumerator.cs
- StdValidatorsAndConverters.cs
- QilParameter.cs
- ProcessHostMapPath.cs
- ScrollChangedEventArgs.cs
- BaseCollection.cs
- DbCommandDefinition.cs
- NativeObjectSecurity.cs
- BaseValidator.cs
- DBSchemaRow.cs
- Camera.cs
- MetadataArtifactLoaderComposite.cs
- ProxyWebPartConnectionCollection.cs
- PersonalizationStateInfo.cs
- BooleanProjectedSlot.cs
- ExtendedPropertyCollection.cs
- FormViewModeEventArgs.cs
- PerspectiveCamera.cs
- XmlIlTypeHelper.cs
- ReflectionTypeLoadException.cs
- EntityTypeEmitter.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ToolStripDropDown.cs
- GiveFeedbackEvent.cs
- DragAssistanceManager.cs
- XmlAnyAttributeAttribute.cs
- Quaternion.cs
- Line.cs
- SpotLight.cs
- NetNamedPipeSecurityMode.cs
- ConcurrentDictionary.cs
- MissingMemberException.cs
- HitTestParameters3D.cs
- PathTooLongException.cs
- TextEditorParagraphs.cs
- SelectorAutomationPeer.cs
- StylusCaptureWithinProperty.cs
- SqlCacheDependencyDatabase.cs
- Parameter.cs
- PathFigure.cs
- DrawListViewItemEventArgs.cs
- DocumentReferenceCollection.cs
- DragCompletedEventArgs.cs
- TypeElement.cs
- MenuItemStyle.cs
- Nullable.cs
- StateValidator.cs
- ArrayElementGridEntry.cs
- HelpProvider.cs
- XamlBrushSerializer.cs
- MessageLoggingFilterTraceRecord.cs
- TextEvent.cs
- SqlBuffer.cs
- InternalPermissions.cs
- XPathException.cs
- ServiceBuildProvider.cs
- GridLengthConverter.cs
- InputReferenceExpression.cs
- DuplexSecurityProtocolFactory.cs
- WriteStateInfoBase.cs
- Automation.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- XmlSchemaInferenceException.cs
- InputBuffer.cs
- OletxTransactionFormatter.cs
- XPathArrayIterator.cs
- ReturnType.cs
- UserUseLicenseDictionaryLoader.cs
- CompModSwitches.cs
- MachineKeySection.cs
- RTLAwareMessageBox.cs
- UIAgentAsyncParams.cs
- DataGridViewDataErrorEventArgs.cs
- SqlHelper.cs
- Process.cs
- SelectedDatesCollection.cs
- XmlChildNodes.cs
- OdbcRowUpdatingEvent.cs
- SHA384Managed.cs
- Vector3DConverter.cs
- DispatchWrapper.cs
- RemotingAttributes.cs
- RenderData.cs
- HostingEnvironmentWrapper.cs
- SamlAdvice.cs
- ClientTargetCollection.cs
- PackageRelationshipSelector.cs
- XPathMultyIterator.cs
- RegexWorker.cs
- StateItem.cs
- EdmComplexPropertyAttribute.cs
- KerberosSecurityTokenParameters.cs