Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlSerializerFactory.cs
- Trace.cs
- GridViewUpdateEventArgs.cs
- AsyncDataRequest.cs
- StringWriter.cs
- CqlParserHelpers.cs
- AppDomainFactory.cs
- OdbcReferenceCollection.cs
- ItemCheckEvent.cs
- Module.cs
- StringUtil.cs
- DetailsViewUpdateEventArgs.cs
- RawUIStateInputReport.cs
- RectConverter.cs
- DataGridViewHitTestInfo.cs
- Matrix3D.cs
- PipeStream.cs
- EdmEntityTypeAttribute.cs
- PagesChangedEventArgs.cs
- MenuItemStyleCollection.cs
- DataGridRowDetailsEventArgs.cs
- WSSecureConversationDec2005.cs
- ErrorFormatter.cs
- SettingsPropertyValueCollection.cs
- Panel.cs
- FilteredAttributeCollection.cs
- XmlHelper.cs
- ArraySubsetEnumerator.cs
- Deserializer.cs
- FontSource.cs
- XMLUtil.cs
- precedingquery.cs
- MultiPropertyDescriptorGridEntry.cs
- Ipv6Element.cs
- XmlUTF8TextWriter.cs
- XmlAnyElementAttributes.cs
- SchemaImporter.cs
- DataGridViewTextBoxCell.cs
- HttpModuleCollection.cs
- PropertyDescriptorCollection.cs
- SudsCommon.cs
- UIElementParagraph.cs
- FileUtil.cs
- ToolStripGrip.cs
- WindowsGraphicsCacheManager.cs
- CharacterMetricsDictionary.cs
- ZipIOExtraFieldZip64Element.cs
- WhitespaceRuleLookup.cs
- TableParagraph.cs
- QuaternionRotation3D.cs
- ToolTip.cs
- AppDomainManager.cs
- ItemsPanelTemplate.cs
- IDReferencePropertyAttribute.cs
- MoveSizeWinEventHandler.cs
- ListChangedEventArgs.cs
- ComponentSerializationService.cs
- InputMethod.cs
- DeferredTextReference.cs
- __ConsoleStream.cs
- NotifyParentPropertyAttribute.cs
- DefaultSection.cs
- TextSelectionHighlightLayer.cs
- InputLangChangeEvent.cs
- ControlIdConverter.cs
- TypefaceCollection.cs
- HttpApplication.cs
- IPAddress.cs
- ConfigXmlSignificantWhitespace.cs
- BooleanAnimationUsingKeyFrames.cs
- TcpAppDomainProtocolHandler.cs
- MetricEntry.cs
- MarkupExtensionParser.cs
- PropertyChangeTracker.cs
- DataRecord.cs
- RefreshEventArgs.cs
- KeyValueInternalCollection.cs
- Statements.cs
- WindowInteractionStateTracker.cs
- CodeMemberField.cs
- XmlChoiceIdentifierAttribute.cs
- UserPreferenceChangedEventArgs.cs
- EntityDataSourceStatementEditor.cs
- CustomValidator.cs
- XmlEntityReference.cs
- HashHelper.cs
- HistoryEventArgs.cs
- HiddenField.cs
- TreeViewItemAutomationPeer.cs
- EffectiveValueEntry.cs
- XmlSchemaValidator.cs
- ContentDefinition.cs
- OleDbConnectionFactory.cs
- CounterSampleCalculator.cs
- EntityException.cs
- AbsoluteQuery.cs
- UrlPropertyAttribute.cs
- Certificate.cs
- HtmlTitle.cs
- DbException.cs