Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / UpdateException.cs / 1305376 / UpdateException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- 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
- PropertyStore.cs
- RepeaterCommandEventArgs.cs
- FeatureSupport.cs
- RtfControls.cs
- TdsParser.cs
- SqlConnectionManager.cs
- SendKeys.cs
- RangeValidator.cs
- DBSchemaRow.cs
- SvcMapFileLoader.cs
- QueryCacheKey.cs
- BeginStoryboard.cs
- SqlCacheDependency.cs
- ProxyGenerator.cs
- RepeaterItem.cs
- LineProperties.cs
- Comparer.cs
- basemetadatamappingvisitor.cs
- OdbcCommandBuilder.cs
- DesignerDataRelationship.cs
- DSACryptoServiceProvider.cs
- FieldCollectionEditor.cs
- FloaterParaClient.cs
- Vector3DAnimationBase.cs
- WindowsListViewScroll.cs
- ProviderBase.cs
- ReliableReplySessionChannel.cs
- EditorZone.cs
- RoutedEventHandlerInfo.cs
- ForeignKeyConstraint.cs
- ParenExpr.cs
- KernelTypeValidation.cs
- AtomPub10CategoriesDocumentFormatter.cs
- ReadOnlyAttribute.cs
- AccessDataSourceView.cs
- LockCookie.cs
- ListViewGroupItemCollection.cs
- Helpers.cs
- ClientApiGenerator.cs
- ReverseInheritProperty.cs
- TextContainerChangeEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Point4DValueSerializer.cs
- MarkupCompiler.cs
- ConnectionPoint.cs
- ParseHttpDate.cs
- XmlMapping.cs
- SqlMethods.cs
- WorkflowLayouts.cs
- BindingExpressionBase.cs
- PeerSecurityManager.cs
- MessageQueueConverter.cs
- TextSchema.cs
- WorkflowApplicationCompletedEventArgs.cs
- BrowsableAttribute.cs
- SessionParameter.cs
- XmlValidatingReaderImpl.cs
- PropertyMetadata.cs
- EntityClientCacheKey.cs
- ContextQuery.cs
- RecognizedPhrase.cs
- DataContract.cs
- HighlightVisual.cs
- PropertyGroupDescription.cs
- HyperLinkField.cs
- DocumentSchemaValidator.cs
- BamlMapTable.cs
- GeometryDrawing.cs
- FixedSOMTableRow.cs
- ConfigXmlDocument.cs
- ButtonColumn.cs
- CompilationLock.cs
- CursorEditor.cs
- GridViewCellAutomationPeer.cs
- Atom10FormatterFactory.cs
- SliderAutomationPeer.cs
- WebPartTransformer.cs
- GeometryGroup.cs
- EventItfInfo.cs
- TemplatePropertyEntry.cs
- SendingRequestEventArgs.cs
- HashHelper.cs
- SafeNativeMethods.cs
- TableFieldsEditor.cs
- TrackingServices.cs
- ToolBarButtonClickEvent.cs
- DataGridViewButtonColumn.cs
- AlternateView.cs
- GenericsNotImplementedException.cs
- TableHeaderCell.cs
- XmlSchemaFacet.cs
- ProcessModelSection.cs
- ExtenderControl.cs
- templategroup.cs
- DesignerDataView.cs
- FormViewModeEventArgs.cs
- ProcessThread.cs
- ActivityExecutionContextCollection.cs
- InputProcessorProfiles.cs
- BookmarkCallbackWrapper.cs