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
- CipherData.cs
- SHA256.cs
- Input.cs
- CodePropertyReferenceExpression.cs
- ToolStripDropTargetManager.cs
- DesignerTransactionCloseEvent.cs
- DbConnectionPoolGroup.cs
- OperatingSystem.cs
- DataSourceExpressionCollection.cs
- EpmAttributeNameBuilder.cs
- CharAnimationUsingKeyFrames.cs
- PageParserFilter.cs
- StylusPointDescription.cs
- FontDifferentiator.cs
- base64Transforms.cs
- DesignerExtenders.cs
- BaseValidatorDesigner.cs
- MissingMemberException.cs
- SQLMoney.cs
- VirtualDirectoryMapping.cs
- InitializationEventAttribute.cs
- BaseAddressPrefixFilterElement.cs
- Span.cs
- SourceFileBuildProvider.cs
- BamlLocalizationDictionary.cs
- FormsAuthentication.cs
- AnyReturnReader.cs
- SchemaConstraints.cs
- SafeNativeHandle.cs
- AttachedAnnotation.cs
- ApplicationContext.cs
- Menu.cs
- SqlMethodCallConverter.cs
- TemplatePagerField.cs
- TypeConstant.cs
- FieldToken.cs
- DynamicField.cs
- TextTreeTextBlock.cs
- DeviceContexts.cs
- CapacityStreamGeometryContext.cs
- Vector.cs
- CustomGrammar.cs
- UIElementHelper.cs
- UserUseLicenseDictionaryLoader.cs
- PermissionRequestEvidence.cs
- StylusPointCollection.cs
- EventLogPermission.cs
- Asn1Utilities.cs
- XPathArrayIterator.cs
- NotifyParentPropertyAttribute.cs
- BasicCommandTreeVisitor.cs
- PropVariant.cs
- OdbcException.cs
- MenuCommandService.cs
- LayoutTable.cs
- MultiDataTrigger.cs
- RootNamespaceAttribute.cs
- Point4D.cs
- SharedDp.cs
- XPathException.cs
- bidPrivateBase.cs
- LinqMaximalSubtreeNominator.cs
- SequentialUshortCollection.cs
- TypeCodeDomSerializer.cs
- GroupItemAutomationPeer.cs
- AutomationEventArgs.cs
- Matrix.cs
- XmlDictionaryReader.cs
- FontSizeConverter.cs
- SamlAuthenticationStatement.cs
- PropertyEmitter.cs
- SqlWebEventProvider.cs
- CompModSwitches.cs
- XmlSchemaSimpleTypeUnion.cs
- FixedTextSelectionProcessor.cs
- ProtectedConfigurationSection.cs
- FixedSOMElement.cs
- CommandID.cs
- StrokeCollectionConverter.cs
- HighlightComponent.cs
- ColumnBinding.cs
- WebException.cs
- PeerNodeAddress.cs
- DataGridViewCheckBoxColumn.cs
- updatecommandorderer.cs
- DataGridItem.cs
- IndependentAnimationStorage.cs
- OutputCacheEntry.cs
- CodeConstructor.cs
- CheckBoxPopupAdapter.cs
- UIElementIsland.cs
- ScrollProperties.cs
- _KerberosClient.cs
- SingleTagSectionHandler.cs
- DataColumnMapping.cs
- MessageEncoder.cs
- PageTheme.cs
- FontUnit.cs
- ReadWriteObjectLock.cs
- SuppressMessageAttribute.cs