Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceValidationException.cs / 1305376 / 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
- NavigationWindowAutomationPeer.cs
- CapabilitiesSection.cs
- VectorCollectionConverter.cs
- HiddenField.cs
- TableItemStyle.cs
- ScriptManager.cs
- GCHandleCookieTable.cs
- ImplicitInputBrush.cs
- TreeNodeCollectionEditor.cs
- CodeGeneratorAttribute.cs
- SelectionProcessor.cs
- OverrideMode.cs
- ConsoleKeyInfo.cs
- CustomAttributeBuilder.cs
- BookmarkInfo.cs
- DataPagerCommandEventArgs.cs
- MultiByteCodec.cs
- TypeUnloadedException.cs
- FixedSOMImage.cs
- SqlDataSourceCache.cs
- Page.cs
- ReaderWriterLock.cs
- DataGridPagingPage.cs
- Int32Converter.cs
- InternalCompensate.cs
- Stacktrace.cs
- AssemblyInfo.cs
- HtmlHistory.cs
- WebConfigurationFileMap.cs
- ClientConfigurationHost.cs
- XmlRawWriter.cs
- OleDbInfoMessageEvent.cs
- DivideByZeroException.cs
- userdatakeys.cs
- Panel.cs
- WsatConfiguration.cs
- x509utils.cs
- SqlCacheDependency.cs
- VectorValueSerializer.cs
- BindToObject.cs
- TcpHostedTransportConfiguration.cs
- versioninfo.cs
- LinqDataSourceDisposeEventArgs.cs
- StreamHelper.cs
- ListViewContainer.cs
- SqlFormatter.cs
- UserControl.cs
- PathTooLongException.cs
- WebReferenceOptions.cs
- RoutedCommand.cs
- Clause.cs
- ChangePasswordDesigner.cs
- TypeConverterValueSerializer.cs
- FrameworkObject.cs
- SqlClientPermission.cs
- _TransmitFileOverlappedAsyncResult.cs
- SecurityHeaderElementInferenceEngine.cs
- SeverityFilter.cs
- GlyphCache.cs
- TargetException.cs
- securestring.cs
- ClientSettingsStore.cs
- MissingFieldException.cs
- ReadOnlyDataSourceView.cs
- SrgsGrammar.cs
- DateTimeStorage.cs
- TextReader.cs
- LayoutDump.cs
- XmlTypeAttribute.cs
- XmlUrlResolver.cs
- safesecurityhelperavalon.cs
- ZipIOLocalFileBlock.cs
- BaseCAMarshaler.cs
- ImageKeyConverter.cs
- bidPrivateBase.cs
- HttpHandlersSection.cs
- FixedSOMImage.cs
- Cursor.cs
- FacetDescription.cs
- InlineUIContainer.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ConcurrentDictionary.cs
- Page.cs
- KeyInterop.cs
- RequestQueue.cs
- StringPropertyBuilder.cs
- ChangeProcessor.cs
- InternalResources.cs
- TemplateEditingVerb.cs
- ElementMarkupObject.cs
- NativeMethodsCLR.cs
- HandleRef.cs
- PhysicalFontFamily.cs
- ForeignKeyConstraint.cs
- Model3DGroup.cs
- DelayLoadType.cs
- XpsSerializationException.cs
- InkCanvasAutomationPeer.cs
- DataControlFieldCollection.cs
- MissingSatelliteAssemblyException.cs