Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / DataServiceResponse.cs / 1 / 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 (); 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 (); 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
- DataSourceControlBuilder.cs
- ComplexType.cs
- UserControlCodeDomTreeGenerator.cs
- RepeaterCommandEventArgs.cs
- FreezableCollection.cs
- BamlStream.cs
- NativeRightsManagementAPIsStructures.cs
- SafeFindHandle.cs
- TextFormattingConverter.cs
- EventLogPermission.cs
- SmiEventSink_DeferedProcessing.cs
- ConnectionManagementElement.cs
- ActivityExecutor.cs
- WebPartDisplayMode.cs
- ChildDocumentBlock.cs
- BookmarkWorkItem.cs
- CodeLabeledStatement.cs
- RegexStringValidator.cs
- DataSourceCacheDurationConverter.cs
- DataFormats.cs
- Error.cs
- ClickablePoint.cs
- SerializationSectionGroup.cs
- FrameworkElementAutomationPeer.cs
- XmlDataSourceNodeDescriptor.cs
- ObjectDataSourceSelectingEventArgs.cs
- ButtonBase.cs
- APCustomTypeDescriptor.cs
- StickyNoteAnnotations.cs
- WizardForm.cs
- DataGridViewCellCancelEventArgs.cs
- PolicyManager.cs
- RegexCapture.cs
- Axis.cs
- ToolStripItemCollection.cs
- ToolStripItemCollection.cs
- ClassValidator.cs
- BindingOperations.cs
- ControlPropertyNameConverter.cs
- TableCellAutomationPeer.cs
- BaseTemplateCodeDomTreeGenerator.cs
- NameValueCollection.cs
- EpmCustomContentSerializer.cs
- QuaternionKeyFrameCollection.cs
- EventDescriptor.cs
- CatchDesigner.xaml.cs
- QuotedStringWriteStateInfo.cs
- GeometryCombineModeValidation.cs
- ControlCollection.cs
- ActivityTypeDesigner.xaml.cs
- SoapEnumAttribute.cs
- InstancePersistenceContext.cs
- SymbolType.cs
- ProviderException.cs
- ErrorHandler.cs
- FixedStringLookup.cs
- UnsafeNativeMethods.cs
- TextSegment.cs
- PointUtil.cs
- ListControl.cs
- ColorConverter.cs
- PeerCollaborationPermission.cs
- MetaModel.cs
- CallbackHandler.cs
- IsolatedStorageFilePermission.cs
- ExtendedPropertiesHandler.cs
- RepeaterItem.cs
- ControlTemplate.cs
- MutexSecurity.cs
- GACMembershipCondition.cs
- IisTraceListener.cs
- ResolveInfo.cs
- DynamicActivityXamlReader.cs
- GenericsInstances.cs
- CollectionBase.cs
- RuntimeResourceSet.cs
- SqlProviderServices.cs
- CookieProtection.cs
- Point3DCollection.cs
- WebDisplayNameAttribute.cs
- MaskedTextProvider.cs
- NativeMethods.cs
- EdmSchemaAttribute.cs
- LockCookie.cs
- TextEffect.cs
- AutomationTextAttribute.cs
- HtmlPanelAdapter.cs
- WindowsListBox.cs
- PackageProperties.cs
- UIElement3D.cs
- MembershipPasswordException.cs
- Timer.cs
- PathSegment.cs
- RouteValueExpressionBuilder.cs
- __TransparentProxy.cs
- QueryTreeBuilder.cs
- TreeNodeConverter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- HtmlObjectListAdapter.cs
- FileReader.cs