Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceValidationException.cs / 1 / EntityDataSourceValidationException.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner objsdev //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.DynamicData; using System.Security.Permissions; using System.Runtime.Serialization; namespace System.Web.UI.WebControls { [Serializable] public sealed class EntityDataSourceValidationException : Exception, IDynamicValidatorException { private const string InnerExceptionsTag = "InnerExceptions"; private readonly Dictionary_innerExceptions = new Dictionary (); public EntityDataSourceValidationException() : base() { } public EntityDataSourceValidationException(string message) : base(message) { } public EntityDataSourceValidationException(string message, Exception innerException) : base(message, innerException) { } internal EntityDataSourceValidationException(string message, Dictionary innerExceptions) : base(message) { _innerExceptions = innerExceptions; } private EntityDataSourceValidationException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) { _innerExceptions = (Dictionary )serializationInfo.GetValue(InnerExceptionsTag, typeof(Dictionary )); } IDictionary IDynamicValidatorException.InnerExceptions { get { return _innerExceptions; } } [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue(InnerExceptionsTag, _innerExceptions); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner objsdev //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web.DynamicData; using System.Security.Permissions; using System.Runtime.Serialization; namespace System.Web.UI.WebControls { [Serializable] public sealed class EntityDataSourceValidationException : Exception, IDynamicValidatorException { private const string InnerExceptionsTag = "InnerExceptions"; private readonly Dictionary_innerExceptions = new Dictionary (); public EntityDataSourceValidationException() : base() { } public EntityDataSourceValidationException(string message) : base(message) { } public EntityDataSourceValidationException(string message, Exception innerException) : base(message, innerException) { } internal EntityDataSourceValidationException(string message, Dictionary innerExceptions) : base(message) { _innerExceptions = innerExceptions; } private EntityDataSourceValidationException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext) { _innerExceptions = (Dictionary )serializationInfo.GetValue(InnerExceptionsTag, typeof(Dictionary )); } IDictionary IDynamicValidatorException.InnerExceptions { get { return _innerExceptions; } } [SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue(InnerExceptionsTag, _innerExceptions); } } } // 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
- FormCollection.cs
- StateItem.cs
- Control.cs
- WindowsScrollBarBits.cs
- Span.cs
- ConnectionPointCookie.cs
- _Win32.cs
- ConstrainedGroup.cs
- MD5CryptoServiceProvider.cs
- ExportOptions.cs
- HitTestResult.cs
- Int16AnimationBase.cs
- TemporaryBitmapFile.cs
- ChildChangedEventArgs.cs
- SqlConnectionStringBuilder.cs
- CodeTypeParameter.cs
- SmtpReplyReaderFactory.cs
- WrappedReader.cs
- PersistChildrenAttribute.cs
- NumericExpr.cs
- VBCodeProvider.cs
- Style.cs
- _NTAuthentication.cs
- MetadataPropertyAttribute.cs
- CodeDirectoryCompiler.cs
- OrderedDictionary.cs
- BinaryFormatter.cs
- TextEditorLists.cs
- GeneralTransform3DCollection.cs
- DataSourceView.cs
- UpDownBase.cs
- IndexedGlyphRun.cs
- DeflateEmulationStream.cs
- FamilyMap.cs
- DocComment.cs
- Debug.cs
- InputLangChangeRequestEvent.cs
- SymbolPair.cs
- CorrelationTokenInvalidatedHandler.cs
- TrailingSpaceComparer.cs
- NativeRecognizer.cs
- BasicHttpSecurityMode.cs
- UnsafeNativeMethods.cs
- ColorMap.cs
- DbDataAdapter.cs
- BuilderPropertyEntry.cs
- Version.cs
- FileLogRecordStream.cs
- HyperLink.cs
- ProfileInfo.cs
- ResourceReader.cs
- Parser.cs
- RoutedEventHandlerInfo.cs
- MonitorWrapper.cs
- sqlnorm.cs
- CSharpCodeProvider.cs
- DataGridColumnReorderingEventArgs.cs
- LicenseProviderAttribute.cs
- ToolStripPanelCell.cs
- CurrentChangedEventManager.cs
- WindowsFormsSectionHandler.cs
- AnimatedTypeHelpers.cs
- MethodBuilder.cs
- XmlAttribute.cs
- PresentationAppDomainManager.cs
- DataGridCaption.cs
- TrackBarRenderer.cs
- ClientSettingsProvider.cs
- ManagementNamedValueCollection.cs
- ConfigurationStrings.cs
- COM2ExtendedBrowsingHandler.cs
- BrowserCapabilitiesCompiler.cs
- GradientStop.cs
- sitestring.cs
- SourceChangedEventArgs.cs
- Int32.cs
- CatalogPartDesigner.cs
- UnrecognizedPolicyAssertionElement.cs
- Queue.cs
- Aes.cs
- DetailsViewRow.cs
- SystemIPInterfaceStatistics.cs
- LinqDataSourceView.cs
- ComplexPropertyEntry.cs
- RoleService.cs
- AppearanceEditorPart.cs
- MessageQueuePermission.cs
- RegexCapture.cs
- ExpressionVisitor.cs
- DesignerTransactionCloseEvent.cs
- CreateBookmarkScope.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ReachBasicContext.cs
- MultiByteCodec.cs
- Domain.cs
- PictureBox.cs
- MembershipPasswordException.cs
- DictionarySurrogate.cs
- ListenerSingletonConnectionReader.cs
- RelationshipManager.cs