Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- QueryStringParameter.cs
- SpeechRecognitionEngine.cs
- DesigntimeLicenseContextSerializer.cs
- MappedMetaModel.cs
- ComponentCommands.cs
- DesignerActionTextItem.cs
- AttributeQuery.cs
- BrowserDefinition.cs
- DiagnosticEventProvider.cs
- login.cs
- DataTablePropertyDescriptor.cs
- TextTreePropertyUndoUnit.cs
- UnsafeNativeMethods.cs
- WebAdminConfigurationHelper.cs
- ProgressiveCrcCalculatingStream.cs
- TimeZone.cs
- ButtonBase.cs
- SqlProfileProvider.cs
- FlowLayout.cs
- InputBinder.cs
- DrawingContext.cs
- SerializerWriterEventHandlers.cs
- WindowsListViewSubItem.cs
- EndpointInfoCollection.cs
- GorillaCodec.cs
- SemanticResultKey.cs
- XPathNodeList.cs
- Rotation3DKeyFrameCollection.cs
- URL.cs
- SelectionItemProviderWrapper.cs
- ExpressionWriter.cs
- EntityProxyTypeInfo.cs
- HelpKeywordAttribute.cs
- SqlRecordBuffer.cs
- ListViewTableRow.cs
- DataGridViewTextBoxColumn.cs
- Misc.cs
- RawStylusInputReport.cs
- ArrangedElementCollection.cs
- XmlDataContract.cs
- StackSpiller.Bindings.cs
- AliasGenerator.cs
- MetadataItemSerializer.cs
- ObjectFullSpanRewriter.cs
- GridViewHeaderRowPresenter.cs
- SchemaLookupTable.cs
- sqlcontext.cs
- SynchronizationLockException.cs
- Parser.cs
- DataGridView.cs
- RowVisual.cs
- CheckoutException.cs
- CodeIterationStatement.cs
- InheritablePropertyChangeInfo.cs
- InProcStateClientManager.cs
- TextTreeNode.cs
- OutOfProcStateClientManager.cs
- HasCopySemanticsAttribute.cs
- IdnMapping.cs
- Internal.cs
- ButtonChrome.cs
- FieldMetadata.cs
- FragmentQueryKB.cs
- Pens.cs
- WebPartMenuStyle.cs
- NGCSerializationManagerAsync.cs
- COM2TypeInfoProcessor.cs
- SnapLine.cs
- SqlExpressionNullability.cs
- TranslateTransform3D.cs
- GenericAuthenticationEventArgs.cs
- RuntimeConfigurationRecord.cs
- PolyLineSegment.cs
- DeadCharTextComposition.cs
- ClientClassGenerator.cs
- DaylightTime.cs
- BamlStream.cs
- RequestCache.cs
- SqlServer2KCompatibilityAnnotation.cs
- MergablePropertyAttribute.cs
- XmlNamespaceMappingCollection.cs
- ToolZone.cs
- ListItemsCollectionEditor.cs
- CommentEmitter.cs
- EntityDesignPluralizationHandler.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- TypeConverter.cs
- ParameterToken.cs
- WindowsAuthenticationEventArgs.cs
- ReadOnlyDictionary.cs
- XslAst.cs
- DataBoundLiteralControl.cs
- OracleParameterCollection.cs
- ConfigurationSection.cs
- InkCollectionBehavior.cs
- CompilerResults.cs
- ProviderConnectionPoint.cs
- DataColumnMapping.cs
- SymLanguageType.cs
- WebPartConnectionsCancelVerb.cs