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
- RelationshipEndMember.cs
- ConnectionOrientedTransportBindingElement.cs
- StorageModelBuildProvider.cs
- ApplicationSecurityManager.cs
- SimpleTypeResolver.cs
- ForwardPositionQuery.cs
- ThaiBuddhistCalendar.cs
- CustomAttributeBuilder.cs
- SchemaEntity.cs
- ReadOnlyPropertyMetadata.cs
- RequestCacheEntry.cs
- SpoolingTaskBase.cs
- AutomationPatternInfo.cs
- TaskExtensions.cs
- StructuredTypeEmitter.cs
- EntityConnection.cs
- DynamicMethod.cs
- NamedObjectList.cs
- RedistVersionInfo.cs
- PersonalizationState.cs
- BehaviorDragDropEventArgs.cs
- ContractMapping.cs
- PerspectiveCamera.cs
- WebPartMenuStyle.cs
- WebServiceHost.cs
- HwndTarget.cs
- CodeMethodInvokeExpression.cs
- SoapEnumAttribute.cs
- SwitchElementsCollection.cs
- Win32SafeHandles.cs
- CommentEmitter.cs
- SID.cs
- TextViewBase.cs
- CompModSwitches.cs
- Attributes.cs
- ControlBindingsConverter.cs
- AdornerDecorator.cs
- filewebresponse.cs
- HostExecutionContextManager.cs
- ConstantCheck.cs
- PointCollectionValueSerializer.cs
- SettingsSavedEventArgs.cs
- PropertySegmentSerializer.cs
- BufferedReadStream.cs
- CodeRegionDirective.cs
- DataGridViewColumnConverter.cs
- ClientScriptManager.cs
- CacheMemory.cs
- ModelFunctionTypeElement.cs
- BuildProviderAppliesToAttribute.cs
- BaseAddressPrefixFilterElement.cs
- PermissionSetEnumerator.cs
- Queue.cs
- PrimitiveXmlSerializers.cs
- StoragePropertyMapping.cs
- DataSourceCacheDurationConverter.cs
- BitmapEffectInput.cs
- StylusLogic.cs
- ACE.cs
- ImageCollectionEditor.cs
- CompilationAssemblyInstallComponent.cs
- ButtonStandardAdapter.cs
- DocumentEventArgs.cs
- TTSEvent.cs
- CancellableEnumerable.cs
- SourceFileBuildProvider.cs
- COM2TypeInfoProcessor.cs
- TaiwanLunisolarCalendar.cs
- WebPartConnection.cs
- BaseEntityWrapper.cs
- LoginDesignerUtil.cs
- ToolStripDropDownButton.cs
- EdmProviderManifest.cs
- PostBackTrigger.cs
- SqlCacheDependency.cs
- LightweightEntityWrapper.cs
- SiteMapPath.cs
- StringInfo.cs
- XmlSchemaDocumentation.cs
- Reference.cs
- counter.cs
- ObjectDataSourceEventArgs.cs
- BitmapMetadataBlob.cs
- unitconverter.cs
- NamespaceListProperty.cs
- TypeResolvingOptionsAttribute.cs
- AnnotationResourceCollection.cs
- KeyFrames.cs
- PublishLicense.cs
- CodeAttributeArgumentCollection.cs
- InheritanceAttribute.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- PeerNodeTraceRecord.cs
- MetadataProperty.cs
- ParallelDesigner.cs
- XamlPoint3DCollectionSerializer.cs
- DataGridBoundColumn.cs
- EventLogPermissionAttribute.cs
- DBPropSet.cs
- WebPartCollection.cs