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
- SubMenuStyleCollectionEditor.cs
- SystemThemeKey.cs
- ProxyWebPartConnectionCollection.cs
- TypeBuilder.cs
- OneWayElement.cs
- TextTreeUndo.cs
- MenuItem.cs
- TextServicesDisplayAttribute.cs
- GridItemCollection.cs
- TdsParserStaticMethods.cs
- ToolStripRendererSwitcher.cs
- ManagedWndProcTracker.cs
- InternalSafeNativeMethods.cs
- ListView.cs
- XsdBuildProvider.cs
- CompositeFontParser.cs
- DateTimeSerializationSection.cs
- TargetConverter.cs
- ProcessInfo.cs
- TextRangeBase.cs
- returneventsaver.cs
- AlphabeticalEnumConverter.cs
- _AutoWebProxyScriptEngine.cs
- ToolStripRenderEventArgs.cs
- VersionPair.cs
- BindingMAnagerBase.cs
- NavigationWindowAutomationPeer.cs
- Attributes.cs
- TopClause.cs
- MimeMapping.cs
- FileDetails.cs
- FrameworkRichTextComposition.cs
- DependencyProperty.cs
- SkewTransform.cs
- WindowsTreeView.cs
- IDispatchConstantAttribute.cs
- PageVisual.cs
- ContextMenu.cs
- HttpBindingExtension.cs
- DataControlPagerLinkButton.cs
- SubMenuStyleCollection.cs
- KeyValuePairs.cs
- PaperSource.cs
- ScrollItemProviderWrapper.cs
- QilVisitor.cs
- TextDecorationCollectionConverter.cs
- Rectangle.cs
- CroppedBitmap.cs
- SectionXmlInfo.cs
- SqlNotificationEventArgs.cs
- LineGeometry.cs
- DescendentsWalker.cs
- IUnknownConstantAttribute.cs
- SmiEventSink.cs
- EncoderBestFitFallback.cs
- ChildTable.cs
- UInt16Storage.cs
- IntPtr.cs
- SectionVisual.cs
- SocketPermission.cs
- DataGridViewToolTip.cs
- NativeMethods.cs
- Msec.cs
- XsltArgumentList.cs
- SecurityState.cs
- BuildProvider.cs
- PopOutPanel.cs
- CustomActivityDesigner.cs
- mansign.cs
- BaseAsyncResult.cs
- StatusStrip.cs
- WCFBuildProvider.cs
- Figure.cs
- MenuItem.cs
- ResourceIDHelper.cs
- TemplateBindingExtensionConverter.cs
- AttachmentCollection.cs
- ToolboxComponentsCreatingEventArgs.cs
- HtmlFormParameterReader.cs
- LinearQuaternionKeyFrame.cs
- KeyboardNavigation.cs
- ListViewDataItem.cs
- GroupBox.cs
- ArgumentException.cs
- TakeQueryOptionExpression.cs
- DataTableMappingCollection.cs
- KeysConverter.cs
- OrderPreservingMergeHelper.cs
- DataRelationCollection.cs
- InteropExecutor.cs
- FixedSOMFixedBlock.cs
- Pair.cs
- Rights.cs
- FamilyCollection.cs
- HyperLinkField.cs
- SchemaSetCompiler.cs
- GacUtil.cs
- X500Name.cs
- TypeConverterAttribute.cs
- FontDifferentiator.cs