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
- XmlDictionaryString.cs
- NameValueFileSectionHandler.cs
- ControlBuilderAttribute.cs
- WhitespaceReader.cs
- TemplatedAdorner.cs
- ScrollProperties.cs
- Set.cs
- MetadataHelper.cs
- Random.cs
- Region.cs
- Walker.cs
- SourceItem.cs
- DataGridViewCellLinkedList.cs
- FilteredAttributeCollection.cs
- SystemNetworkInterface.cs
- DBBindings.cs
- loginstatus.cs
- SqlBooleanMismatchVisitor.cs
- BitmapSource.cs
- DataObjectAttribute.cs
- HelpEvent.cs
- SelectionChangedEventArgs.cs
- XmlSchemaValidationException.cs
- DependencyPropertyKey.cs
- FileStream.cs
- Parameter.cs
- PersianCalendar.cs
- IntSecurity.cs
- coordinator.cs
- RegexMatch.cs
- Asn1IntegerConverter.cs
- XmlAttributeProperties.cs
- SendingRequestEventArgs.cs
- SpeechDetectedEventArgs.cs
- InternalRelationshipCollection.cs
- MsmqDiagnostics.cs
- MethodRental.cs
- AuthenticatedStream.cs
- ExtentCqlBlock.cs
- Bold.cs
- ToolStripContentPanelRenderEventArgs.cs
- LockCookie.cs
- SelectedCellsCollection.cs
- Wizard.cs
- WebBrowserNavigatedEventHandler.cs
- XPathBuilder.cs
- XmlMapping.cs
- WebPartCatalogCloseVerb.cs
- SurrogateChar.cs
- TextServicesCompartmentEventSink.cs
- HostProtectionPermission.cs
- WorkflowFileItem.cs
- ControlValuePropertyAttribute.cs
- WebScriptClientGenerator.cs
- ApplicationBuildProvider.cs
- XpsImage.cs
- WindowsTooltip.cs
- MgmtConfigurationRecord.cs
- DownloadProgressEventArgs.cs
- HtmlEncodedRawTextWriter.cs
- WebPartCollection.cs
- MarkupProperty.cs
- ForEachDesigner.xaml.cs
- BinaryFormatter.cs
- PipelineDeploymentState.cs
- Inline.cs
- RelAssertionDirectKeyIdentifierClause.cs
- ColumnHeader.cs
- SelectorItemAutomationPeer.cs
- BinaryEditor.cs
- _UriSyntax.cs
- TransactionException.cs
- TypedTableBase.cs
- DocumentApplicationState.cs
- DummyDataSource.cs
- CodeTypeReferenceExpression.cs
- GlyphTypeface.cs
- WebBrowserBase.cs
- UnmanagedBitmapWrapper.cs
- HttpResponseHeader.cs
- DataGridParentRows.cs
- SecurityKeyType.cs
- EncryptedData.cs
- MetadataUtilsSmi.cs
- ManualWorkflowSchedulerService.cs
- _UriTypeConverter.cs
- WebContext.cs
- EnumerableRowCollection.cs
- Thickness.cs
- RequestQueue.cs
- TypeExtension.cs
- ImplicitInputBrush.cs
- SpecularMaterial.cs
- NativeMethods.cs
- PrintControllerWithStatusDialog.cs
- SpecularMaterial.cs
- Composition.cs
- TextOutput.cs
- UnknownBitmapDecoder.cs
- InitializationEventAttribute.cs