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
- Operator.cs
- DataServiceQueryOfT.cs
- ProfessionalColorTable.cs
- InternalConfigSettingsFactory.cs
- TextRange.cs
- SessionParameter.cs
- MeasurementDCInfo.cs
- EventBuilder.cs
- DesignerAttribute.cs
- StateMachineDesignerPaint.cs
- IndexedGlyphRun.cs
- CurrencyWrapper.cs
- ValidatorUtils.cs
- ObjectStateFormatter.cs
- NonNullItemCollection.cs
- MessageHeaderDescriptionCollection.cs
- RTTrackingProfile.cs
- CacheDependency.cs
- SizeAnimationUsingKeyFrames.cs
- TaskForm.cs
- OdbcConnectionOpen.cs
- AtomPub10CategoriesDocumentFormatter.cs
- XComponentModel.cs
- SiblingIterators.cs
- SystemPens.cs
- MobileControlsSectionHandler.cs
- Int64Storage.cs
- WSIdentityFaultException.cs
- ToolStripRenderEventArgs.cs
- SHA384Managed.cs
- InputScopeConverter.cs
- DesignerDataView.cs
- DBNull.cs
- PropertyConverter.cs
- GenericAuthenticationEventArgs.cs
- SspiHelper.cs
- SrgsRuleRef.cs
- UserMapPath.cs
- ClientSettings.cs
- Bits.cs
- ProcessManager.cs
- SerialPort.cs
- SingleConverter.cs
- AuthenticationConfig.cs
- ExpressionBindingCollection.cs
- UrlAuthorizationModule.cs
- PageCatalogPartDesigner.cs
- SoapAttributeAttribute.cs
- PrimitiveCodeDomSerializer.cs
- HttpHostedTransportConfiguration.cs
- EndOfStreamException.cs
- DataGridToolTip.cs
- MasterPageParser.cs
- SimpleTypeResolver.cs
- ListViewCommandEventArgs.cs
- XmlElementAttribute.cs
- PasswordRecovery.cs
- ResourceExpression.cs
- SessionStateSection.cs
- Vector3DCollectionValueSerializer.cs
- XmlElementAttributes.cs
- InternalConfigConfigurationFactory.cs
- DBDataPermission.cs
- SqlSelectStatement.cs
- Overlapped.cs
- IntSecurity.cs
- JulianCalendar.cs
- TimerTable.cs
- Pen.cs
- CapacityStreamGeometryContext.cs
- APCustomTypeDescriptor.cs
- DataGridCommandEventArgs.cs
- CodeDefaultValueExpression.cs
- PropertyPathWorker.cs
- ControlCollection.cs
- DefaultPropertiesToSend.cs
- FaultHandlingFilter.cs
- XMLSchema.cs
- TimeStampChecker.cs
- EventProperty.cs
- WebPartChrome.cs
- XmlNotation.cs
- EventDriven.cs
- Pointer.cs
- RankException.cs
- ProgressBarBrushConverter.cs
- PaintValueEventArgs.cs
- HtmlInputPassword.cs
- QueryComponents.cs
- NominalTypeEliminator.cs
- XmlConverter.cs
- SynchronizedPool.cs
- DataBindingList.cs
- TextChange.cs
- SafeSystemMetrics.cs
- MsmqInputChannelListener.cs
- BaseServiceProvider.cs
- MiniParameterInfo.cs
- FileLogRecord.cs
- RelationshipEndMember.cs