Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- GridItemCollection.cs
- ShaderEffect.cs
- BindingMAnagerBase.cs
- DrawingContextWalker.cs
- StoragePropertyMapping.cs
- ProfileSettingsCollection.cs
- ViewBase.cs
- IFlowDocumentViewer.cs
- SqlTrackingQuery.cs
- SmiSettersStream.cs
- SingleConverter.cs
- PropertyGroupDescription.cs
- AttributeAction.cs
- ContractCodeDomInfo.cs
- DataControlPagerLinkButton.cs
- SqlClientPermission.cs
- WindowCollection.cs
- ComponentCollection.cs
- BitmapCodecInfo.cs
- CodeNamespaceCollection.cs
- ComplexLine.cs
- ZoneIdentityPermission.cs
- BevelBitmapEffect.cs
- WebBrowserNavigatedEventHandler.cs
- DbProviderFactory.cs
- HttpResponseBase.cs
- SerializationInfoEnumerator.cs
- ContainerUtilities.cs
- Geometry3D.cs
- WorkerRequest.cs
- ScalarOps.cs
- NetworkInformationException.cs
- ZipIOExtraField.cs
- GeneralTransform3DCollection.cs
- ClientTarget.cs
- RayHitTestParameters.cs
- EntityParameter.cs
- UndoManager.cs
- BreakRecordTable.cs
- SettingsBase.cs
- MessageProperties.cs
- XmlSchemaComplexType.cs
- LongPath.cs
- IdentityModelStringsVersion1.cs
- ObjectContext.cs
- SiteMapNodeItem.cs
- XmlChoiceIdentifierAttribute.cs
- MatrixValueSerializer.cs
- ComponentResourceKey.cs
- OrderedDictionaryStateHelper.cs
- WebServiceReceiveDesigner.cs
- WindowsFormsHelpers.cs
- HelpFileFileNameEditor.cs
- ContractBase.cs
- XmlSchemaExporter.cs
- SpotLight.cs
- HtmlElement.cs
- CodeTypeConstructor.cs
- ContractAdapter.cs
- PropertyPathWorker.cs
- Activity.cs
- SessionMode.cs
- GridViewSelectEventArgs.cs
- OdbcException.cs
- ScriptReferenceBase.cs
- SubMenuStyleCollectionEditor.cs
- PassportIdentity.cs
- PaintValueEventArgs.cs
- IisTraceListener.cs
- SerializationInfoEnumerator.cs
- XmlImplementation.cs
- ReplyChannelAcceptor.cs
- DbMetaDataColumnNames.cs
- ZoneMembershipCondition.cs
- Empty.cs
- DataGridLinkButton.cs
- Calendar.cs
- Stack.cs
- DiscriminatorMap.cs
- ResourcePermissionBaseEntry.cs
- ColumnCollection.cs
- InputDevice.cs
- FormParameter.cs
- SystemIPGlobalStatistics.cs
- DesignerActionPanel.cs
- TemplatePartAttribute.cs
- CollectionViewSource.cs
- EntityViewContainer.cs
- VisualBrush.cs
- FixedTextSelectionProcessor.cs
- GeometryModel3D.cs
- FontFamily.cs
- MessageQueue.cs
- GeneralTransform3DTo2D.cs
- Vector3DAnimationUsingKeyFrames.cs
- CopyAttributesAction.cs
- ErrorRuntimeConfig.cs
- EntityClassGenerator.cs
- SimpleApplicationHost.cs
- RSAPKCS1SignatureFormatter.cs