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
- PropertyToken.cs
- CustomErrorCollection.cs
- XmlSortKeyAccumulator.cs
- SemanticKeyElement.cs
- BadImageFormatException.cs
- SqlRemoveConstantOrderBy.cs
- RemotingException.cs
- TaskFileService.cs
- CharEnumerator.cs
- FontNameConverter.cs
- LayoutTableCell.cs
- TemplateControlCodeDomTreeGenerator.cs
- ISFClipboardData.cs
- FileDialogCustomPlacesCollection.cs
- XsltCompileContext.cs
- RowCache.cs
- precedingsibling.cs
- DataError.cs
- DataObjectEventArgs.cs
- StorageAssociationSetMapping.cs
- MediaSystem.cs
- SettingsPropertyNotFoundException.cs
- NavigationCommands.cs
- WebPartUtil.cs
- RequestQueryParser.cs
- DBConcurrencyException.cs
- DefaultMemberAttribute.cs
- Oid.cs
- AnnotationStore.cs
- CommandEventArgs.cs
- WebPartEditorCancelVerb.cs
- ClientSponsor.cs
- EntityClassGenerator.cs
- ProfessionalColors.cs
- AppDomainCompilerProxy.cs
- RijndaelManaged.cs
- ButtonChrome.cs
- ManagementObject.cs
- SchemaNames.cs
- CornerRadius.cs
- Vertex.cs
- MailMessage.cs
- IPEndPoint.cs
- WSSecurityPolicy.cs
- ConfigurationLocationCollection.cs
- SharedPerformanceCounter.cs
- DBConcurrencyException.cs
- WindowsFormsSectionHandler.cs
- XmlParser.cs
- CodeNamespaceCollection.cs
- BinaryFormatter.cs
- DeobfuscatingStream.cs
- DesignerSerializationOptionsAttribute.cs
- SoapCommonClasses.cs
- TransformCollection.cs
- Sentence.cs
- IndexingContentUnit.cs
- HttpWebRequestElement.cs
- propertyentry.cs
- ZipFileInfoCollection.cs
- ConditionBrowserDialog.cs
- DWriteFactory.cs
- ColumnReorderedEventArgs.cs
- XmlReaderDelegator.cs
- BamlResourceContent.cs
- MULTI_QI.cs
- SafeLocalAllocation.cs
- SharedStatics.cs
- DeferredReference.cs
- StrongNameUtility.cs
- CFStream.cs
- BitStream.cs
- XhtmlBasicPhoneCallAdapter.cs
- DragDrop.cs
- PrintController.cs
- CatchDesigner.xaml.cs
- XPathSelfQuery.cs
- hwndwrapper.cs
- DragStartedEventArgs.cs
- XPathNavigator.cs
- Brush.cs
- TriggerActionCollection.cs
- Schema.cs
- LinkConverter.cs
- NTAccount.cs
- PersonalizationDictionary.cs
- Rule.cs
- OdbcConnectionHandle.cs
- DocumentXmlWriter.cs
- TableItemStyle.cs
- SqlDataAdapter.cs
- QueryStatement.cs
- RelationshipSet.cs
- FormsAuthenticationTicket.cs
- HttpContextBase.cs
- RawStylusSystemGestureInputReport.cs
- RangeValueProviderWrapper.cs
- AddInIpcChannel.cs
- ComboBoxItem.cs
- ViewGenResults.cs