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
- ApplicationInfo.cs
- TypeDescriptorFilterService.cs
- OpenTypeMethods.cs
- MediaContextNotificationWindow.cs
- VolatileEnlistmentMultiplexing.cs
- Or.cs
- ExtensionWindowHeader.cs
- BamlLocalizableResource.cs
- UnicodeEncoding.cs
- PropertyMetadata.cs
- Environment.cs
- BooleanAnimationBase.cs
- ValidationErrorEventArgs.cs
- ElementNotAvailableException.cs
- FieldMetadata.cs
- IOException.cs
- ChangePassword.cs
- SweepDirectionValidation.cs
- XamlToRtfParser.cs
- CreateInstanceBinder.cs
- _WebProxyDataBuilder.cs
- Function.cs
- QueryRewriter.cs
- ReadOnlyCollectionBase.cs
- FileSecurity.cs
- CodeCompileUnit.cs
- WebPartManager.cs
- OperatingSystemVersionCheck.cs
- RegistryKey.cs
- DiffuseMaterial.cs
- UpdatePanelTriggerCollection.cs
- XsltLibrary.cs
- ToolZone.cs
- SqlTrackingQuery.cs
- DoubleLinkListEnumerator.cs
- AxParameterData.cs
- InternalCache.cs
- DateTimeConverter.cs
- DetailsViewDesigner.cs
- LineBreak.cs
- HtmlTextArea.cs
- DrawingImage.cs
- ZoneButton.cs
- ContentHostHelper.cs
- MemberPath.cs
- WindowsEditBox.cs
- MembershipPasswordException.cs
- CompilationRelaxations.cs
- TreeNodeCollectionEditor.cs
- MemberPathMap.cs
- XmlDeclaration.cs
- CodeMemberProperty.cs
- SQLGuidStorage.cs
- LocalizableAttribute.cs
- GeneratedView.cs
- AvTrace.cs
- EndEvent.cs
- ConstantExpression.cs
- SmtpFailedRecipientException.cs
- CharAnimationUsingKeyFrames.cs
- RuleSet.cs
- HtmlInputButton.cs
- COM2Properties.cs
- TdsParser.cs
- WmfPlaceableFileHeader.cs
- CacheDependency.cs
- XmlDocumentType.cs
- XmlSchemaSimpleTypeList.cs
- CultureSpecificStringDictionary.cs
- CalculatedColumn.cs
- ToolStripItemTextRenderEventArgs.cs
- UIInitializationException.cs
- SHA384Cng.cs
- InkPresenterAutomationPeer.cs
- InitializeCorrelation.cs
- StreamWriter.cs
- ToggleProviderWrapper.cs
- CollectionTypeElement.cs
- FontUnit.cs
- XamlClipboardData.cs
- SimpleModelProvider.cs
- QueryPageSettingsEventArgs.cs
- PathTooLongException.cs
- Memoizer.cs
- Document.cs
- SiteMapProvider.cs
- WorkflowInstance.cs
- IOException.cs
- ToolStripStatusLabel.cs
- CompilationRelaxations.cs
- Int32RectConverter.cs
- unsafenativemethodstextservices.cs
- XmlSchemaSimpleTypeRestriction.cs
- NetCodeGroup.cs
- PreservationFileWriter.cs
- JsonReaderWriterFactory.cs
- WindowsContainer.cs
- SessionEndingEventArgs.cs
- FileLoadException.cs
- ArrayConverter.cs