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
- SplayTreeNode.cs
- DbProviderServices.cs
- XmlUtf8RawTextWriter.cs
- BitmapEffectInput.cs
- SafeBitVector32.cs
- WebPartEditorOkVerb.cs
- RadialGradientBrush.cs
- RegexInterpreter.cs
- DesignObjectWrapper.cs
- CurrentChangingEventManager.cs
- DependentList.cs
- ContainerParaClient.cs
- AtlasWeb.Designer.cs
- BamlVersionHeader.cs
- GeometryGroup.cs
- TraceSource.cs
- TimeStampChecker.cs
- ScriptBehaviorDescriptor.cs
- localization.cs
- FixedBufferAttribute.cs
- XmlDesigner.cs
- TableLayoutStyle.cs
- TextRangeEditLists.cs
- DataContext.cs
- BamlCollectionHolder.cs
- ToolboxItemCollection.cs
- MessageBuilder.cs
- DelegatingConfigHost.cs
- DetailsViewDeleteEventArgs.cs
- AdornedElementPlaceholder.cs
- ISSmlParser.cs
- Ipv6Element.cs
- TabItemAutomationPeer.cs
- SqlInternalConnection.cs
- TextSyndicationContentKindHelper.cs
- CodePrimitiveExpression.cs
- StructuredTypeEmitter.cs
- BackgroundFormatInfo.cs
- BufferModesCollection.cs
- LineGeometry.cs
- DynamicMethod.cs
- BooleanFacetDescriptionElement.cs
- EventManager.cs
- InvalidProgramException.cs
- CaseExpr.cs
- JsonWriter.cs
- DesignerProperties.cs
- ControlBuilder.cs
- ProxyHwnd.cs
- PropertyFilterAttribute.cs
- HostProtectionException.cs
- WebPartRestoreVerb.cs
- ValidationEventArgs.cs
- ContentHostHelper.cs
- FaultDescription.cs
- ResourceAttributes.cs
- ProviderSettings.cs
- PhoneCall.cs
- Repeater.cs
- SoapAttributes.cs
- PropertyReferenceSerializer.cs
- UnknownExceptionActionHelper.cs
- TabControl.cs
- FlowDocumentReaderAutomationPeer.cs
- WS2007HttpBindingCollectionElement.cs
- CaseExpr.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- Line.cs
- TextEditorMouse.cs
- DirectoryGroupQuery.cs
- Selector.cs
- WindowsFormsSectionHandler.cs
- EventItfInfo.cs
- PageAsyncTaskManager.cs
- WindowsNonControl.cs
- TimeStampChecker.cs
- UserControl.cs
- GlobalEventManager.cs
- XmlDocumentSerializer.cs
- AppDomainFactory.cs
- HwndAppCommandInputProvider.cs
- ScrollItemProviderWrapper.cs
- RegisteredExpandoAttribute.cs
- StyleSheetRefUrlEditor.cs
- XmlSchemaAll.cs
- adornercollection.cs
- NodeFunctions.cs
- LocatorManager.cs
- RegionInfo.cs
- RSAPKCS1SignatureDeformatter.cs
- SelectedDatesCollection.cs
- BindingManagerDataErrorEventArgs.cs
- activationcontext.cs
- PermissionListSet.cs
- Rijndael.cs
- TriggerActionCollection.cs
- MimeTextImporter.cs
- ScrollableControlDesigner.cs
- WebPartActionVerb.cs
- SR.cs