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
- InvalidWMPVersionException.cs
- ScriptingJsonSerializationSection.cs
- ModifiableIteratorCollection.cs
- DashStyle.cs
- ListCommandEventArgs.cs
- StoryFragments.cs
- XLinq.cs
- PanelStyle.cs
- CharAnimationBase.cs
- ProtocolsConfigurationEntry.cs
- QueryOperator.cs
- SqlDataRecord.cs
- ObjectAnimationUsingKeyFrames.cs
- GroupQuery.cs
- ToolStripItemTextRenderEventArgs.cs
- ChangeDirector.cs
- MarkupExtensionParser.cs
- ValidatingReaderNodeData.cs
- BitmapEffect.cs
- NamespaceQuery.cs
- XmlAnyElementAttributes.cs
- NameValueConfigurationElement.cs
- CopyOnWriteList.cs
- EllipseGeometry.cs
- TemplateBamlRecordReader.cs
- WebServiceReceive.cs
- TableProviderWrapper.cs
- RightsManagementResourceHelper.cs
- Hex.cs
- UiaCoreApi.cs
- WindowsGraphicsCacheManager.cs
- EmissiveMaterial.cs
- Stack.cs
- CompilerGlobalScopeAttribute.cs
- CompilerGeneratedAttribute.cs
- OpCodes.cs
- EventLevel.cs
- DataGridColumnHeaderCollection.cs
- ContourSegment.cs
- EncryptedPackageFilter.cs
- ResXBuildProvider.cs
- List.cs
- SqlTriggerAttribute.cs
- Debug.cs
- SamlNameIdentifierClaimResource.cs
- MaterialGroup.cs
- AnnotationResourceCollection.cs
- ThreadExceptionDialog.cs
- ReferentialConstraint.cs
- HandleCollector.cs
- SrgsDocument.cs
- ContractAdapter.cs
- ErrorStyle.cs
- ButtonBaseAdapter.cs
- AssociatedControlConverter.cs
- DataRelationCollection.cs
- ServiceAuthorizationElement.cs
- linebase.cs
- TextTreeTextNode.cs
- SerTrace.cs
- AmbiguousMatchException.cs
- SrgsSemanticInterpretationTag.cs
- DynamicILGenerator.cs
- HttpResponseHeader.cs
- PrimitiveXmlSerializers.cs
- CalendarAutoFormat.cs
- ClientSection.cs
- LayoutEvent.cs
- MergePropertyDescriptor.cs
- DesignerActionService.cs
- AsyncCodeActivity.cs
- Splitter.cs
- UnsafeNativeMethods.cs
- MembershipValidatePasswordEventArgs.cs
- MessageQueueConverter.cs
- ButtonChrome.cs
- PointCollectionConverter.cs
- TreeNodeBindingCollection.cs
- FileLevelControlBuilderAttribute.cs
- FontConverter.cs
- SelectionPattern.cs
- ViewBase.cs
- ConnectionInterfaceCollection.cs
- TextCompositionManager.cs
- PointConverter.cs
- StringAnimationBase.cs
- ListViewInsertedEventArgs.cs
- ModelTreeEnumerator.cs
- TimeZoneInfo.cs
- ToolStripOverflow.cs
- BindUriHelper.cs
- DebugHandleTracker.cs
- BinaryParser.cs
- Translator.cs
- SafeLibraryHandle.cs
- AbstractDataSvcMapFileLoader.cs
- HttpModuleActionCollection.cs
- PerfCounters.cs
- SettingsPropertyIsReadOnlyException.cs
- ConfigurationProperty.cs