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
- InkCanvas.cs
- ArrayItemReference.cs
- StrokeCollectionDefaultValueFactory.cs
- TemplateNameScope.cs
- RemoteX509AsymmetricSecurityKey.cs
- MessageCredentialType.cs
- Pens.cs
- RegisteredDisposeScript.cs
- WebPart.cs
- BrowserDefinition.cs
- RegexCaptureCollection.cs
- ToolStripDropDownItemDesigner.cs
- ContentValidator.cs
- MethodBuilder.cs
- Registry.cs
- QueryActivatableWorkflowsCommand.cs
- MemoryStream.cs
- CodeGroup.cs
- GridLengthConverter.cs
- RepeatBehavior.cs
- UriParserTemplates.cs
- PathSegment.cs
- SortQuery.cs
- ComplexPropertyEntry.cs
- Span.cs
- HMACSHA256.cs
- X509CertificateCollection.cs
- PixelFormats.cs
- IdentityHolder.cs
- DataSourceHelper.cs
- SourceFilter.cs
- IsolatedStoragePermission.cs
- SqlNodeTypeOperators.cs
- SafeWaitHandle.cs
- VerticalAlignConverter.cs
- ChildDocumentBlock.cs
- WebBaseEventKeyComparer.cs
- CompilationPass2TaskInternal.cs
- Byte.cs
- ThemeableAttribute.cs
- DesignerDataRelationship.cs
- FramingChannels.cs
- OleDbInfoMessageEvent.cs
- AuthorizationPolicyTypeElementCollection.cs
- TextServicesDisplayAttribute.cs
- RootDesignerSerializerAttribute.cs
- SqlTriggerAttribute.cs
- SqlUtils.cs
- NoPersistScope.cs
- PolicyManager.cs
- GraphicsContext.cs
- ImageListStreamer.cs
- _LazyAsyncResult.cs
- CollectionViewSource.cs
- XmlArrayItemAttribute.cs
- _Events.cs
- CodeStatement.cs
- BuildProviderUtils.cs
- Vector3DAnimation.cs
- METAHEADER.cs
- MultiPropertyDescriptorGridEntry.cs
- ComponentSerializationService.cs
- HttpRequest.cs
- SafeJobHandle.cs
- ReadOnlyHierarchicalDataSource.cs
- BoundsDrawingContextWalker.cs
- XPathScanner.cs
- ListBoxDesigner.cs
- ValueTypeFixupInfo.cs
- EventMap.cs
- AccessedThroughPropertyAttribute.cs
- PeerCustomResolverElement.cs
- BaseHashHelper.cs
- GlyphElement.cs
- LinkedList.cs
- TableAdapterManagerHelper.cs
- ToolboxBitmapAttribute.cs
- HttpPostServerProtocol.cs
- Misc.cs
- LinearKeyFrames.cs
- UpdatableWrapper.cs
- JoinGraph.cs
- CacheMemory.cs
- SubMenuStyle.cs
- SerializationSectionGroup.cs
- ClonableStack.cs
- Properties.cs
- XmlCustomFormatter.cs
- ExpressionNode.cs
- SweepDirectionValidation.cs
- CollectionEditVerbManager.cs
- ValidationManager.cs
- Native.cs
- ImageCreator.cs
- EventLogPermissionEntryCollection.cs
- CollectionContainer.cs
- JournalNavigationScope.cs
- InitializationEventAttribute.cs
- SqlConnectionFactory.cs
- SemanticAnalyzer.cs