Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DbDeleteCommandTree.cs
- MetadataArtifactLoaderCompositeFile.cs
- DataControlHelper.cs
- DocumentViewerAutomationPeer.cs
- ConfigurationFileMap.cs
- ParameterSubsegment.cs
- Quaternion.cs
- SerializationException.cs
- PaperSize.cs
- OpacityConverter.cs
- SystemPens.cs
- JsonStringDataContract.cs
- StoreContentChangedEventArgs.cs
- Vector3DIndependentAnimationStorage.cs
- DataAccessor.cs
- XmlSignatureManifest.cs
- DataPagerCommandEventArgs.cs
- ObjectConverter.cs
- ScriptResourceMapping.cs
- PeerOutputChannel.cs
- QilPatternVisitor.cs
- TargetParameterCountException.cs
- ExclusiveHandleList.cs
- X509SecurityTokenProvider.cs
- LambdaCompiler.Binary.cs
- TrackingConditionCollection.cs
- XmlBoundElement.cs
- Operand.cs
- SmiConnection.cs
- ProgressBarRenderer.cs
- SegmentInfo.cs
- PasswordRecovery.cs
- CharAnimationBase.cs
- InputLangChangeRequestEvent.cs
- NativeMethods.cs
- AuthorizationRuleCollection.cs
- SubstitutionList.cs
- XmlElementAttribute.cs
- ReadOnlyActivityGlyph.cs
- BitmapEffectInputData.cs
- DelegateHelpers.cs
- MemberInfoSerializationHolder.cs
- ImageClickEventArgs.cs
- UniformGrid.cs
- VisualBrush.cs
- WindowsImpersonationContext.cs
- Geometry3D.cs
- FixedSOMElement.cs
- TextureBrush.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- ExpressionReplacer.cs
- _AcceptOverlappedAsyncResult.cs
- XmlElementAttribute.cs
- SocketAddress.cs
- RecipientInfo.cs
- FileSystemEventArgs.cs
- X509Certificate2Collection.cs
- TextBlockAutomationPeer.cs
- FontNameConverter.cs
- FaultContractInfo.cs
- UniformGrid.cs
- ZoneLinkButton.cs
- SoundPlayer.cs
- EntityConnection.cs
- Constants.cs
- CapabilitiesAssignment.cs
- DeclarativeCatalogPart.cs
- Evidence.cs
- SelectionItemPattern.cs
- DataGridParentRows.cs
- GeneratedCodeAttribute.cs
- LogLogRecordEnumerator.cs
- EntityCommandCompilationException.cs
- LocalizationComments.cs
- MissingFieldException.cs
- SqlFormatter.cs
- SingletonChannelAcceptor.cs
- FormViewRow.cs
- ElementNotEnabledException.cs
- ClientSettingsProvider.cs
- SafeFileMappingHandle.cs
- AttributeConverter.cs
- ProxyWebPartConnectionCollection.cs
- DependencyPropertyAttribute.cs
- CachingHintValidation.cs
- nulltextnavigator.cs
- TextEditorContextMenu.cs
- ArgumentNullException.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- CfgSemanticTag.cs
- ResourceDescriptionAttribute.cs
- PropertyItemInternal.cs
- BasicSecurityProfileVersion.cs
- MessageSecurityProtocolFactory.cs
- LinearKeyFrames.cs
- WorkflowServiceAttributes.cs
- ThemeConfigurationDialog.cs
- Point3DIndependentAnimationStorage.cs
- DBCommand.cs
- IInstanceTable.cs