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, IEnumerable stateEntries)
: base(message, innerException)
{
List list = new List(stateEntries);
_stateEntries = list.AsReadOnly();
}
///
/// Gets state entries implicated in the error.
///
public ReadOnlyCollection StateEntries { 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, IEnumerable stateEntries)
: base(message, innerException)
{
List list = new List(stateEntries);
_stateEntries = list.AsReadOnly();
}
///
/// Gets state entries implicated in the error.
///
public ReadOnlyCollection StateEntries { 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
- DataTablePropertyDescriptor.cs
- EncoderBestFitFallback.cs
- XmlHierarchicalEnumerable.cs
- SplashScreen.cs
- PasswordRecovery.cs
- PeerNameResolver.cs
- PageBuildProvider.cs
- MaterialCollection.cs
- HashMembershipCondition.cs
- TableRowGroupCollection.cs
- EntityDataSourceValidationException.cs
- _DynamicWinsockMethods.cs
- Region.cs
- FixUpCollection.cs
- Latin1Encoding.cs
- CacheAxisQuery.cs
- WindowsAuthenticationEventArgs.cs
- TypeElement.cs
- RoutedCommand.cs
- DurationConverter.cs
- AnimationTimeline.cs
- XsltSettings.cs
- XmlNode.cs
- JapaneseCalendar.cs
- SourceInterpreter.cs
- Util.cs
- XmlSchemaInferenceException.cs
- SmtpDigestAuthenticationModule.cs
- HtmlTextArea.cs
- BaseProcessor.cs
- RangeValidator.cs
- NativeMethods.cs
- SemanticResultValue.cs
- HelloMessageCD1.cs
- DataGridViewColumnStateChangedEventArgs.cs
- InputLanguageProfileNotifySink.cs
- SqlDataReaderSmi.cs
- KeyProperty.cs
- SafeArrayRankMismatchException.cs
- ItemsControlAutomationPeer.cs
- XmlILConstructAnalyzer.cs
- DescendantQuery.cs
- CatalogPartCollection.cs
- ImageAnimator.cs
- TagMapInfo.cs
- HtmlHead.cs
- ImageMetadata.cs
- EmbossBitmapEffect.cs
- SpnegoTokenAuthenticator.cs
- IConvertible.cs
- DmlSqlGenerator.cs
- ACL.cs
- TextTreeObjectNode.cs
- DocumentPageHost.cs
- ILGenerator.cs
- SQLGuidStorage.cs
- ConfigXmlCDataSection.cs
- HttpContextServiceHost.cs
- InstanceCreationEditor.cs
- XamlFrame.cs
- WorkflowRuntimeBehavior.cs
- WebPartTransformerAttribute.cs
- PieceDirectory.cs
- RegistrySecurity.cs
- DomainConstraint.cs
- OracleBinary.cs
- InkCanvasSelectionAdorner.cs
- XmlIgnoreAttribute.cs
- printdlgexmarshaler.cs
- PathFigureCollectionValueSerializer.cs
- CompressStream.cs
- DesignerProperties.cs
- ListControlConvertEventArgs.cs
- LiteralLink.cs
- Attachment.cs
- typedescriptorpermission.cs
- StrongNameUtility.cs
- Vector3DKeyFrameCollection.cs
- BufferBuilder.cs
- SyndicationDeserializer.cs
- EntityDataSourceView.cs
- PathFigureCollectionValueSerializer.cs
- DbProviderFactoriesConfigurationHandler.cs
- EventWaitHandleSecurity.cs
- Stylus.cs
- ProxyAssemblyNotLoadedException.cs
- TextBoxRenderer.cs
- Lookup.cs
- TypeSystem.cs
- TraceInternal.cs
- Aggregates.cs
- BufferModesCollection.cs
- BuildManager.cs
- MoveSizeWinEventHandler.cs
- SimpleBitVector32.cs
- QilLiteral.cs
- WebReferencesBuildProvider.cs
- ValidationSummary.cs
- LogicalExpr.cs
- ContextQuery.cs