Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataEntity / System / Data / UpdateException.cs / 1 / UpdateException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data { using System; using System.Runtime.Serialization; using System.Security.Permissions; using System.Data.Objects; using System.Collections.ObjectModel; using System.Collections.Generic; ////// Exception during save changes to store /// [Serializable] public class UpdateException : DataException { [NonSerialized] private ReadOnlyCollection_stateEntries; #region constructors /// /// Default constructor /// public UpdateException() : base() { } ////// Constructor that takes a message /// /// public UpdateException(string message) : base(message) { } ////// Constructor that takes a message and an inner exception /// /// /// public UpdateException(string message, Exception innerException) : base(message, innerException) { } ////// Constructor that takes a message and an inner exception /// /// /// /// public UpdateException(string message, Exception innerException, IEnumerablestateEntries) : base(message, innerException) { List list = new List (stateEntries); _stateEntries = list.AsReadOnly(); } /// /// Gets state entries implicated in the error. /// public ReadOnlyCollectionStateEntries { get { return _stateEntries; } } /// /// The protected constructor for serialization /// /// /// protected UpdateException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data { using System; using System.Runtime.Serialization; using System.Security.Permissions; using System.Data.Objects; using System.Collections.ObjectModel; using System.Collections.Generic; ////// Exception during save changes to store /// [Serializable] public class UpdateException : DataException { [NonSerialized] private ReadOnlyCollection_stateEntries; #region constructors /// /// Default constructor /// public UpdateException() : base() { } ////// Constructor that takes a message /// /// public UpdateException(string message) : base(message) { } ////// Constructor that takes a message and an inner exception /// /// /// public UpdateException(string message, Exception innerException) : base(message, innerException) { } ////// Constructor that takes a message and an inner exception /// /// /// /// public UpdateException(string message, Exception innerException, IEnumerablestateEntries) : base(message, innerException) { List list = new List (stateEntries); _stateEntries = list.AsReadOnly(); } /// /// Gets state entries implicated in the error. /// public ReadOnlyCollectionStateEntries { get { return _stateEntries; } } /// /// The protected constructor for serialization /// /// /// protected UpdateException(SerializationInfo info, StreamingContext context) : base(info, context) { } #endregion } } // 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
- MeshGeometry3D.cs
- FileLogRecordHeader.cs
- TextLineResult.cs
- CommandHelper.cs
- HtmlInputText.cs
- Int32Storage.cs
- COMException.cs
- AudioSignalProblemOccurredEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- RowToParametersTransformer.cs
- TypeConverterHelper.cs
- PrintDocument.cs
- EventMappingSettings.cs
- XsltLibrary.cs
- ComboBoxItem.cs
- SourceSwitch.cs
- CustomGrammar.cs
- UdpTransportSettings.cs
- CacheAxisQuery.cs
- FileNotFoundException.cs
- SetIterators.cs
- Converter.cs
- FixedMaxHeap.cs
- ColumnTypeConverter.cs
- RangeEnumerable.cs
- Canvas.cs
- WebBrowserProgressChangedEventHandler.cs
- sqlmetadatafactory.cs
- UndoManager.cs
- CodeAssignStatement.cs
- CurrencyManager.cs
- backend.cs
- DBPropSet.cs
- SecurityTokenProviderContainer.cs
- DescendantOverDescendantQuery.cs
- DateTimePicker.cs
- UnsafePeerToPeerMethods.cs
- BaseDataBoundControlDesigner.cs
- LinkedResource.cs
- HttpPostedFile.cs
- PackUriHelper.cs
- BlurBitmapEffect.cs
- SQLDateTime.cs
- TransformProviderWrapper.cs
- ObsoleteAttribute.cs
- ConnectionManagementElementCollection.cs
- TextServicesHost.cs
- HashSet.cs
- MailWebEventProvider.cs
- BufferedWebEventProvider.cs
- ContextMenu.cs
- StringSorter.cs
- GAC.cs
- FigureParaClient.cs
- UnsafeNetInfoNativeMethods.cs
- PointF.cs
- XamlTreeBuilderBamlRecordWriter.cs
- DBAsyncResult.cs
- TextAutomationPeer.cs
- _BasicClient.cs
- BrowserCapabilitiesCodeGenerator.cs
- SHA256.cs
- AggregateNode.cs
- XmlLangPropertyAttribute.cs
- srgsitem.cs
- OfTypeExpression.cs
- ComponentEditorPage.cs
- PrimaryKeyTypeConverter.cs
- DynamicUpdateCommand.cs
- SafeNativeMethods.cs
- SqlDeflator.cs
- SelectedDatesCollection.cs
- ResourceAssociationType.cs
- DataSourceGroupCollection.cs
- WmlImageAdapter.cs
- InternalConfigEventArgs.cs
- SqlTrackingQuery.cs
- DrawItemEvent.cs
- RewritingPass.cs
- ConnectionsZone.cs
- TypeUtils.cs
- VisualBrush.cs
- ScrollProviderWrapper.cs
- StyleBamlRecordReader.cs
- Imaging.cs
- GridViewCancelEditEventArgs.cs
- TypeUsage.cs
- LayoutSettings.cs
- XsdCachingReader.cs
- TablePatternIdentifiers.cs
- Window.cs
- Logging.cs
- InboundActivityHelper.cs
- SecurityPolicySection.cs
- PeerCollaborationPermission.cs
- ComboBoxRenderer.cs
- FormView.cs
- WebPartCatalogCloseVerb.cs
- ImpersonationContext.cs
- FormsAuthenticationEventArgs.cs