Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / UpdateException.cs / 1305376 / UpdateException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- 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
- RecipientInfo.cs
- BamlVersionHeader.cs
- FixedPage.cs
- RootBrowserWindowAutomationPeer.cs
- TableLayoutColumnStyleCollection.cs
- OptimizerPatterns.cs
- SimpleTextLine.cs
- XmlSchemaSimpleContent.cs
- LayoutTable.cs
- WebPartCatalogAddVerb.cs
- CodeCatchClause.cs
- HierarchicalDataSourceControl.cs
- PeerMaintainer.cs
- OdbcHandle.cs
- MexHttpBindingCollectionElement.cs
- SystemResourceHost.cs
- BackgroundWorker.cs
- FieldToken.cs
- FormViewInsertEventArgs.cs
- XamlToRtfWriter.cs
- ChangeTracker.cs
- GridViewSelectEventArgs.cs
- MobileUserControlDesigner.cs
- WsdlInspector.cs
- SelectionHighlightInfo.cs
- DurableDispatcherAddressingFault.cs
- XmlExceptionHelper.cs
- _SslState.cs
- DataPagerFieldItem.cs
- Repeater.cs
- ProbeDuplexAsyncResult.cs
- SQLDoubleStorage.cs
- HttpHandlersSection.cs
- XmlHierarchyData.cs
- KnownTypeAttribute.cs
- VolatileEnlistmentState.cs
- WindowProviderWrapper.cs
- DependencyObjectPropertyDescriptor.cs
- Transform3DCollection.cs
- WhitespaceRule.cs
- PointHitTestResult.cs
- PseudoWebRequest.cs
- SystemIPInterfaceProperties.cs
- ComboBox.cs
- IdentityVerifier.cs
- XPathNodeIterator.cs
- BitmapCodecInfo.cs
- EnvironmentPermission.cs
- SelectorItemAutomationPeer.cs
- UserPreferenceChangingEventArgs.cs
- EdmComplexPropertyAttribute.cs
- Lasso.cs
- _NestedMultipleAsyncResult.cs
- ScrollableControl.cs
- DockPanel.cs
- StrongNameIdentityPermission.cs
- ServiceDurableInstanceContextProvider.cs
- DiffuseMaterial.cs
- Relationship.cs
- SerializableAttribute.cs
- MetadataItem.cs
- Collection.cs
- GridViewRow.cs
- UrlMappingsModule.cs
- AsymmetricKeyExchangeDeformatter.cs
- TextDecoration.cs
- ListBindingConverter.cs
- GeometryCollection.cs
- InternalConfigConfigurationFactory.cs
- GlyphElement.cs
- IsolatedStorageFile.cs
- BindingContext.cs
- InternalBufferManager.cs
- ScrollableControlDesigner.cs
- TreeChangeInfo.cs
- StatusCommandUI.cs
- ServiceModelSecurityTokenRequirement.cs
- COSERVERINFO.cs
- GradientBrush.cs
- Effect.cs
- RegexMatchCollection.cs
- StringAnimationBase.cs
- ZoomPercentageConverter.cs
- XmlSchemaDatatype.cs
- RootProfilePropertySettingsCollection.cs
- HtmlTableRow.cs
- AxHost.cs
- MemoryMappedViewAccessor.cs
- PopupRoot.cs
- UTF7Encoding.cs
- LocatorPart.cs
- ISSmlParser.cs
- ReferencedCollectionType.cs
- DynamicQueryableWrapper.cs
- SafeHGlobalHandleCritical.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ProcessManager.cs
- _AutoWebProxyScriptEngine.cs
- FormatterServices.cs
- QuaternionRotation3D.cs