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
- ApplicationGesture.cs
- AutomationPatternInfo.cs
- FloaterParagraph.cs
- CharAnimationUsingKeyFrames.cs
- GlyphCache.cs
- SyndicationSerializer.cs
- SoapSchemaMember.cs
- NumberEdit.cs
- SocketException.cs
- SourceChangedEventArgs.cs
- Parameter.cs
- ConnectionStringSettingsCollection.cs
- AudioDeviceOut.cs
- X509CertificateStore.cs
- DocumentApplicationJournalEntry.cs
- XmlBinaryReader.cs
- WorkflowServiceBehavior.cs
- MemberRelationshipService.cs
- _NetworkingPerfCounters.cs
- TakeQueryOptionExpression.cs
- MSAAEventDispatcher.cs
- ExtentJoinTreeNode.cs
- AssemblyName.cs
- HashHelpers.cs
- SchemaMapping.cs
- RemotingServices.cs
- NotifyIcon.cs
- XmlSchemaAny.cs
- DesignerActionKeyboardBehavior.cs
- BuildResult.cs
- SystemUnicastIPAddressInformation.cs
- XhtmlBasicLinkAdapter.cs
- CurrentChangedEventManager.cs
- _AutoWebProxyScriptWrapper.cs
- ComponentFactoryHelpers.cs
- ExtensibleClassFactory.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- PasswordTextContainer.cs
- UIHelper.cs
- SchemaTypeEmitter.cs
- TreeNode.cs
- SqlException.cs
- TextEditor.cs
- ImageField.cs
- InvokeCompletedEventArgs.cs
- SqlCacheDependencySection.cs
- GeometryHitTestParameters.cs
- RouteParameter.cs
- UrlPath.cs
- CompiledWorkflowDefinitionContext.cs
- NamespaceQuery.cs
- KeyGestureValueSerializer.cs
- Schema.cs
- ScriptReferenceBase.cs
- DataSpaceManager.cs
- ACE.cs
- _Rfc2616CacheValidators.cs
- WindowsGraphics.cs
- _UriSyntax.cs
- ToolStrip.cs
- Property.cs
- ObjectNavigationPropertyMapping.cs
- BasicExpressionVisitor.cs
- SerializationSectionGroup.cs
- CustomSignedXml.cs
- TrackingMemoryStreamFactory.cs
- ApplyTemplatesAction.cs
- OracleDateTime.cs
- XmlUrlResolver.cs
- SchemaNotation.cs
- DataTableClearEvent.cs
- ConnectionManagementElementCollection.cs
- HMACRIPEMD160.cs
- HttpServerVarsCollection.cs
- WebWorkflowRole.cs
- PathStreamGeometryContext.cs
- AppDomainFactory.cs
- FrameworkObject.cs
- ConnectionProviderAttribute.cs
- XmlQueryRuntime.cs
- SystemBrushes.cs
- EntityCollection.cs
- Stacktrace.cs
- DBDataPermission.cs
- WebFaultClientMessageInspector.cs
- RichTextBox.cs
- WebContext.cs
- AppDomainShutdownMonitor.cs
- CompiledQueryCacheKey.cs
- ImageMap.cs
- MouseGesture.cs
- ServiceManager.cs
- OutputCacheSection.cs
- X509SecurityTokenProvider.cs
- ClientUtils.cs
- NonSerializedAttribute.cs
- DataShape.cs
- SystemColorTracker.cs
- XmlSchema.cs
- SessionStateItemCollection.cs