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
- WebPartDisplayMode.cs
- SelectionEditingBehavior.cs
- PriorityRange.cs
- HttpMethodConstraint.cs
- GorillaCodec.cs
- ConfigurationManagerHelper.cs
- Crypto.cs
- DefaultPrintController.cs
- PackagePart.cs
- FieldToken.cs
- DrawingCollection.cs
- Style.cs
- Model3D.cs
- GatewayDefinition.cs
- TypedElement.cs
- SslStream.cs
- RpcResponse.cs
- KerberosReceiverSecurityToken.cs
- ReadContentAsBinaryHelper.cs
- WindowsClaimSet.cs
- ReadWriteControlDesigner.cs
- ExitEventArgs.cs
- DbParameterCollection.cs
- XPathSelfQuery.cs
- CDSCollectionETWBCLProvider.cs
- Operators.cs
- SecurityIdentifierConverter.cs
- SymbolType.cs
- TextSelection.cs
- AutoResizedEvent.cs
- IdentityManager.cs
- OdbcDataReader.cs
- Domain.cs
- SourceElementsCollection.cs
- Subordinate.cs
- WebEventTraceProvider.cs
- ReadOnlyCollection.cs
- HttpResponse.cs
- EntityModelBuildProvider.cs
- AttachedPropertyBrowsableAttribute.cs
- DirectoryObjectSecurity.cs
- SQLString.cs
- DataGridViewCellStyleChangedEventArgs.cs
- HostProtectionPermission.cs
- ScriptingSectionGroup.cs
- InkPresenter.cs
- XmlEventCache.cs
- SafeCryptHandles.cs
- Parameter.cs
- DynamicVirtualDiscoSearcher.cs
- ZipIOLocalFileBlock.cs
- SelectedDatesCollection.cs
- TextTreeInsertUndoUnit.cs
- GeneralTransform3D.cs
- Int16AnimationUsingKeyFrames.cs
- DefaultEventAttribute.cs
- WorkflowDesignerColors.cs
- SecurityTokenProviderContainer.cs
- TypeHelpers.cs
- Config.cs
- ListControlBuilder.cs
- CmsInterop.cs
- SafeLibraryHandle.cs
- FormViewUpdateEventArgs.cs
- ObjectMaterializedEventArgs.cs
- TextRenderer.cs
- SecurityElement.cs
- EmbeddedMailObject.cs
- BaseConfigurationRecord.cs
- ContentDesigner.cs
- CollectionMarkupSerializer.cs
- DictionaryEntry.cs
- TextRangeSerialization.cs
- ElementsClipboardData.cs
- RuntimeCompatibilityAttribute.cs
- AsymmetricCryptoHandle.cs
- Variant.cs
- LinqDataSourceHelper.cs
- PageTheme.cs
- AutomationPatternInfo.cs
- Operator.cs
- ToolStripItemBehavior.cs
- MenuItemAutomationPeer.cs
- CodeMethodInvokeExpression.cs
- InfoCardUIAgent.cs
- TemplateEditingFrame.cs
- XmlSchemaAnnotated.cs
- ISAPIApplicationHost.cs
- DecimalAnimationBase.cs
- RequestCachingSection.cs
- DesignerTransaction.cs
- IndependentAnimationStorage.cs
- RawAppCommandInputReport.cs
- SafeSecurityHandles.cs
- XmlSchemaObject.cs
- QueryContinueDragEvent.cs
- HashSet.cs
- ToolStripItemRenderEventArgs.cs
- MinMaxParagraphWidth.cs
- ClientSponsor.cs