Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / UpdateException.cs / 1305376 / UpdateException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- 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 [....] // @backupOwner [....] //--------------------------------------------------------------------- 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
- OperationBehaviorAttribute.cs
- CqlParserHelpers.cs
- Inflater.cs
- DataSvcMapFileSerializer.cs
- ThemeDictionaryExtension.cs
- CodeDomDesignerLoader.cs
- CapabilitiesSection.cs
- MissingFieldException.cs
- FeatureSupport.cs
- ProcessManager.cs
- XmlSerializer.cs
- FormClosingEvent.cs
- BitmapCodecInfoInternal.cs
- ItemList.cs
- HttpListenerRequest.cs
- XsltQilFactory.cs
- DataKeyCollection.cs
- BridgeDataRecord.cs
- EntityTypeEmitter.cs
- ListItemCollection.cs
- TypeDescriptionProviderAttribute.cs
- PassportIdentity.cs
- DecimalMinMaxAggregationOperator.cs
- WMICapabilities.cs
- FactoryGenerator.cs
- SwitchElementsCollection.cs
- EnumerableValidator.cs
- PhysicalOps.cs
- OleDbTransaction.cs
- SendActivityEventArgs.cs
- Debug.cs
- HebrewNumber.cs
- Wrapper.cs
- Monitor.cs
- ErasingStroke.cs
- InfoCardTrace.cs
- ConfigurationManagerHelperFactory.cs
- StringDictionary.cs
- HostedElements.cs
- SourceElementsCollection.cs
- OutputCacheModule.cs
- DetailsViewInsertEventArgs.cs
- FontStyleConverter.cs
- SafeMILHandle.cs
- CorrelationQueryBehavior.cs
- DefaultProxySection.cs
- ConfigurationStrings.cs
- MultipartIdentifier.cs
- TcpActivation.cs
- BorderGapMaskConverter.cs
- TextModifier.cs
- RootCodeDomSerializer.cs
- GridViewEditEventArgs.cs
- MethodBody.cs
- IdentityValidationException.cs
- TextElementEditingBehaviorAttribute.cs
- AnnotationResourceChangedEventArgs.cs
- DataService.cs
- RemotingConfigParser.cs
- DataGridViewAccessibleObject.cs
- RegisteredScript.cs
- DataTrigger.cs
- GenerateHelper.cs
- ValueType.cs
- FlowThrottle.cs
- LocalTransaction.cs
- MouseGestureConverter.cs
- CollectionsUtil.cs
- AbandonedMutexException.cs
- NativeMethods.cs
- WindowsScrollBar.cs
- TraceUtility.cs
- SerialReceived.cs
- SqlConnectionHelper.cs
- InfoCardBinaryReader.cs
- DefaultMemberAttribute.cs
- WindowsScrollBarBits.cs
- NativeMethods.cs
- EntityCollectionChangedParams.cs
- GorillaCodec.cs
- SessionStateContainer.cs
- PassportAuthenticationEventArgs.cs
- IpcChannel.cs
- ValueUnavailableException.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- PointLightBase.cs
- Nullable.cs
- EventItfInfo.cs
- SatelliteContractVersionAttribute.cs
- ViewStateModeByIdAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- BigInt.cs
- SqlNodeAnnotation.cs
- TextRunCache.cs
- ContextQuery.cs
- OdbcConnectionString.cs
- Ref.cs
- XmlIncludeAttribute.cs
- QueryInterceptorAttribute.cs
- WebPartEventArgs.cs