Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ColumnWidthChangingEvent.cs
- DeferredElementTreeState.cs
- CustomAttribute.cs
- TypeExtension.cs
- MulticastNotSupportedException.cs
- DllNotFoundException.cs
- SEHException.cs
- DisplayMemberTemplateSelector.cs
- HostProtectionPermission.cs
- _AutoWebProxyScriptWrapper.cs
- AutoCompleteStringCollection.cs
- InputBuffer.cs
- DataFieldCollectionEditor.cs
- SQLInt16Storage.cs
- DesignOnlyAttribute.cs
- Variant.cs
- SoapInteropTypes.cs
- QuerySettings.cs
- SimpleParser.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TextChange.cs
- RuntimeArgumentHandle.cs
- SiteMapNode.cs
- WebPartTracker.cs
- WebResourceAttribute.cs
- HttpAsyncResult.cs
- RowsCopiedEventArgs.cs
- IdnMapping.cs
- PeerInputChannelListener.cs
- SafeBuffer.cs
- Binding.cs
- DataListCommandEventArgs.cs
- PbrsForward.cs
- DataGridItemCollection.cs
- BaseUriHelper.cs
- XmlAttributeHolder.cs
- PageThemeBuildProvider.cs
- SubpageParagraph.cs
- SourceChangedEventArgs.cs
- MeshGeometry3D.cs
- autovalidator.cs
- WorkflowServiceHostFactory.cs
- FixedSOMLineRanges.cs
- ErasingStroke.cs
- SqlMultiplexer.cs
- DynamicPropertyHolder.cs
- TextDocumentView.cs
- Pointer.cs
- GridViewPageEventArgs.cs
- BitmapCodecInfoInternal.cs
- ClientScriptManager.cs
- UserPersonalizationStateInfo.cs
- ThreadStartException.cs
- CookieProtection.cs
- HuffModule.cs
- HostingEnvironment.cs
- StickyNoteHelper.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TypeValidationEventArgs.cs
- OdbcPermission.cs
- PreloadedPackages.cs
- MaxValueConverter.cs
- CommandDevice.cs
- SignatureResourcePool.cs
- RangeEnumerable.cs
- TableLayoutPanel.cs
- SafeThreadHandle.cs
- WindowsBrush.cs
- AutomationPropertyInfo.cs
- UdpDiscoveryMessageFilter.cs
- DoubleCollectionConverter.cs
- DirectoryNotFoundException.cs
- PerformanceCounter.cs
- StopStoryboard.cs
- CacheSection.cs
- DbConvert.cs
- RtfToXamlReader.cs
- ByeOperation11AsyncResult.cs
- WebPartDescription.cs
- EmptyEnumerator.cs
- SortDescription.cs
- DispatcherProcessingDisabled.cs
- ToolStripItemImageRenderEventArgs.cs
- Int64KeyFrameCollection.cs
- XamlRtfConverter.cs
- sqlnorm.cs
- DirectoryGroupQuery.cs
- XmlSchemaObjectTable.cs
- ZipIOFileItemStream.cs
- WinInet.cs
- WindowsStatic.cs
- ECDiffieHellman.cs
- Frame.cs
- DateTimeStorage.cs
- TypeExtensions.cs
- UIInitializationException.cs
- XmlTextReader.cs
- ListView.cs
- DriveInfo.cs
- XamlFilter.cs