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
- AggregateNode.cs
- WebPartManager.cs
- HtmlAnchor.cs
- ElementUtil.cs
- VisualBrush.cs
- ErrorWebPart.cs
- RegexCode.cs
- SessionEndedEventArgs.cs
- FlowDocumentFormatter.cs
- ActivityExecutionContextCollection.cs
- SuppressMessageAttribute.cs
- BitmapFrameEncode.cs
- GZipDecoder.cs
- AssertHelper.cs
- FormsAuthenticationUser.cs
- log.cs
- DataGridViewDesigner.cs
- ImageKeyConverter.cs
- AssociationSet.cs
- XPathAxisIterator.cs
- XamlContextStack.cs
- ConfigXmlWhitespace.cs
- GZipDecoder.cs
- CompositionTarget.cs
- IDispatchConstantAttribute.cs
- TableTextElementCollectionInternal.cs
- AccessedThroughPropertyAttribute.cs
- DocumentViewerHelper.cs
- mongolianshape.cs
- SoapIgnoreAttribute.cs
- DataColumnMappingCollection.cs
- PrincipalPermission.cs
- DSASignatureDeformatter.cs
- DataControlLinkButton.cs
- ProviderException.cs
- AppDomainManager.cs
- Item.cs
- ListSurrogate.cs
- EntityContainer.cs
- NullableBoolConverter.cs
- UriExt.cs
- SiteMapDataSourceDesigner.cs
- TableLayoutPanelCellPosition.cs
- GenerateTemporaryTargetAssembly.cs
- ResourceReader.cs
- ResourcePool.cs
- Image.cs
- EtwTrace.cs
- EventHandlerService.cs
- AssociatedControlConverter.cs
- TextTrailingWordEllipsis.cs
- ProfileProvider.cs
- UnmanagedMarshal.cs
- _BasicClient.cs
- Validator.cs
- Vector3DAnimation.cs
- SqlReorderer.cs
- TextTabProperties.cs
- TypeBrowserDialog.cs
- TemplateInstanceAttribute.cs
- SystemIPAddressInformation.cs
- UserControlCodeDomTreeGenerator.cs
- PbrsForward.cs
- CreateUserWizardStep.cs
- TypefaceMap.cs
- HostSecurityManager.cs
- OdbcParameterCollection.cs
- X509ChainPolicy.cs
- GenericUriParser.cs
- InternalCache.cs
- CodeGenerationManager.cs
- TextAction.cs
- NoneExcludedImageIndexConverter.cs
- CodeDirectoryCompiler.cs
- IISMapPath.cs
- _AcceptOverlappedAsyncResult.cs
- Stack.cs
- Part.cs
- CursorConverter.cs
- MetadataConversionError.cs
- DataGridColumnDropSeparator.cs
- PrivacyNoticeElement.cs
- ReflectionPermission.cs
- ClientConfigurationHost.cs
- GPRECT.cs
- PropertyValueUIItem.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- TableLayoutCellPaintEventArgs.cs
- EditorAttribute.cs
- DesignBindingValueUIHandler.cs
- SmiEventStream.cs
- RuleSetReference.cs
- ReferencedCategoriesDocument.cs
- QueryOptionExpression.cs
- Variable.cs
- XDeferredAxisSource.cs
- SiteMapPath.cs
- ViewgenGatekeeper.cs
- CheckBoxFlatAdapter.cs
- UInt16.cs