Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SessionEndingCancelEventArgs.cs
- InvalidDocumentContentsException.cs
- TypeBrowserDialog.cs
- UnmanagedMarshal.cs
- PerformanceCounters.cs
- DataGridRelationshipRow.cs
- ParserContext.cs
- ClientConfigurationHost.cs
- ImageListStreamer.cs
- SystemResources.cs
- ReferenceService.cs
- StandardOleMarshalObject.cs
- XmlChildNodes.cs
- BackStopAuthenticationModule.cs
- NameValueConfigurationCollection.cs
- TextTreeUndoUnit.cs
- CharacterBuffer.cs
- GridLength.cs
- ApplicationTrust.cs
- StoreAnnotationsMap.cs
- RevocationPoint.cs
- ZoomPercentageConverter.cs
- EventMemberCodeDomSerializer.cs
- NodeLabelEditEvent.cs
- UrlPropertyAttribute.cs
- ScrollProperties.cs
- ToolboxItemCollection.cs
- XamlSerializer.cs
- HyperlinkAutomationPeer.cs
- UrlAuthFailedErrorFormatter.cs
- FreezableOperations.cs
- MetadataItem_Static.cs
- BufferAllocator.cs
- RecognitionResult.cs
- XmlCompatibilityReader.cs
- CollectionBase.cs
- CapabilitiesUse.cs
- MultilineStringConverter.cs
- ConfigurationFileMap.cs
- IntegerValidator.cs
- CodeConstructor.cs
- ValueHandle.cs
- QilIterator.cs
- SqlServices.cs
- ToggleButtonAutomationPeer.cs
- KerberosReceiverSecurityToken.cs
- CursorInteropHelper.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ObjectIDGenerator.cs
- CounterCreationDataCollection.cs
- RequestCachePolicy.cs
- WinInetCache.cs
- Semaphore.cs
- SerializationException.cs
- SmtpFailedRecipientException.cs
- Gdiplus.cs
- SiteMapPath.cs
- SectionXmlInfo.cs
- NewItemsContextMenuStrip.cs
- DesignerInterfaces.cs
- ImageListStreamer.cs
- ProfileService.cs
- Latin1Encoding.cs
- SortAction.cs
- FastPropertyAccessor.cs
- DockingAttribute.cs
- Memoizer.cs
- ToolStripPanelRow.cs
- COM2IDispatchConverter.cs
- SendMailErrorEventArgs.cs
- DoWhile.cs
- QilInvokeEarlyBound.cs
- ToolStripDropDownDesigner.cs
- PageStatePersister.cs
- InternalException.cs
- MD5CryptoServiceProvider.cs
- VisualBrush.cs
- InstanceLockLostException.cs
- InkPresenterAutomationPeer.cs
- ProfileInfo.cs
- ConstantSlot.cs
- RuleSettings.cs
- ManagementOperationWatcher.cs
- ClassHandlersStore.cs
- TreeIterators.cs
- XmlDataLoader.cs
- PathParser.cs
- PolicyValidationException.cs
- InstanceNotReadyException.cs
- InterleavedZipPartStream.cs
- ValidationError.cs
- LineSegment.cs
- TextComposition.cs
- PeerResolverSettings.cs
- XmlLanguageConverter.cs
- ListViewInsertionMark.cs
- Nodes.cs
- NonVisualControlAttribute.cs
- FormsAuthenticationEventArgs.cs
- ReflectionPermission.cs