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
- QilChoice.cs
- CriticalHandle.cs
- MSAANativeProvider.cs
- SessionParameter.cs
- SinglePageViewer.cs
- IListConverters.cs
- ViewValidator.cs
- XappLauncher.cs
- DesignerHelpers.cs
- ListViewSelectEventArgs.cs
- ActivationArguments.cs
- GridLength.cs
- pingexception.cs
- TheQuery.cs
- VectorConverter.cs
- SqlExpander.cs
- MappingSource.cs
- Set.cs
- XmlSchemaImporter.cs
- QueryableDataSourceHelper.cs
- InitializationEventAttribute.cs
- Socket.cs
- XPathScanner.cs
- SystemIPv6InterfaceProperties.cs
- SerializerWriterEventHandlers.cs
- BuildResultCache.cs
- AttachedAnnotationChangedEventArgs.cs
- FullTextLine.cs
- InheritanceContextChangedEventManager.cs
- InputLangChangeEvent.cs
- ConnectionModeReader.cs
- CodeTypeDeclarationCollection.cs
- QuerySettings.cs
- WaveHeader.cs
- Style.cs
- ListControl.cs
- BaseComponentEditor.cs
- ByteStreamMessageEncodingElement.cs
- MoveSizeWinEventHandler.cs
- BufferCache.cs
- ComEventsMethod.cs
- Helpers.cs
- TerminatorSinks.cs
- ToolStripButton.cs
- KoreanLunisolarCalendar.cs
- WebConfigurationManager.cs
- StringCollection.cs
- AuthenticationModuleElementCollection.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ValidatorCompatibilityHelper.cs
- XD.cs
- ToolboxControl.cs
- ModelPropertyImpl.cs
- SqlTransaction.cs
- DataBindingHandlerAttribute.cs
- CommunicationObjectAbortedException.cs
- EntityDataSourceSelectedEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- VisualState.cs
- listitem.cs
- EntityDataSourceChangedEventArgs.cs
- AppSettings.cs
- Animatable.cs
- documentsequencetextpointer.cs
- ObjectNavigationPropertyMapping.cs
- BufferModesCollection.cs
- BaseDataListActionList.cs
- FatalException.cs
- X509UI.cs
- PlaceHolder.cs
- Missing.cs
- DPTypeDescriptorContext.cs
- OracleRowUpdatedEventArgs.cs
- RemotingConfiguration.cs
- ObjectStorage.cs
- GeometryGroup.cs
- mongolianshape.cs
- mediapermission.cs
- DependencyObject.cs
- CqlParser.cs
- ListView.cs
- SQLStringStorage.cs
- ErrorTolerantObjectWriter.cs
- ImageInfo.cs
- ConstraintConverter.cs
- X509Certificate2.cs
- fixedPageContentExtractor.cs
- ThreadInterruptedException.cs
- DataGridViewColumnEventArgs.cs
- XmlCodeExporter.cs
- WorkflowRequestContext.cs
- BuildProvider.cs
- DataSourceHelper.cs
- PropertyDescriptorGridEntry.cs
- SHA512Managed.cs
- AsnEncodedData.cs
- TextElementEnumerator.cs
- NameValueCollection.cs
- UrlPath.cs
- CommandID.cs