Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceValidationException.cs / 3 / 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
- TraceInternal.cs
- TextDecorationCollection.cs
- DoubleLinkListEnumerator.cs
- ToolStripDropTargetManager.cs
- WebServiceHandler.cs
- AxHostDesigner.cs
- AsnEncodedData.cs
- EventListener.cs
- OrderByQueryOptionExpression.cs
- NativeMethodsCLR.cs
- ObjectItemLoadingSessionData.cs
- EditingMode.cs
- HtmlControl.cs
- SoapServerMessage.cs
- XmlUtil.cs
- XmlTextReaderImpl.cs
- SoapEnumAttribute.cs
- IsolatedStoragePermission.cs
- ClientData.cs
- EmptyEnumerator.cs
- FloaterBaseParagraph.cs
- RuntimeConfigurationRecord.cs
- SqlProfileProvider.cs
- RegexFCD.cs
- InvalidAsynchronousStateException.cs
- RestHandler.cs
- MediaTimeline.cs
- SchemaLookupTable.cs
- DropTarget.cs
- PersonalizableTypeEntry.cs
- WebRequestModulesSection.cs
- UIInitializationException.cs
- IgnoreDeviceFilterElement.cs
- NonSerializedAttribute.cs
- Point4D.cs
- SubMenuStyleCollection.cs
- Facet.cs
- ListBoxItemWrapperAutomationPeer.cs
- XmlNamespaceDeclarationsAttribute.cs
- TreeViewHitTestInfo.cs
- embossbitmapeffect.cs
- XmlSchemaSequence.cs
- ResolveNameEventArgs.cs
- ToolStripComboBox.cs
- XPathExpr.cs
- SEHException.cs
- SamlSerializer.cs
- CompoundFileDeflateTransform.cs
- PersonalizationStateInfoCollection.cs
- ProgressiveCrcCalculatingStream.cs
- coordinatorscratchpad.cs
- WindowsTooltip.cs
- Point3DAnimationBase.cs
- OleDbRowUpdatedEvent.cs
- FreeFormPanel.cs
- BasicExpressionVisitor.cs
- SHA256Managed.cs
- ComAdminWrapper.cs
- UnhandledExceptionEventArgs.cs
- ToolStripOverflowButton.cs
- RegionData.cs
- VirtualPath.cs
- DataGridPagingPage.cs
- HashMembershipCondition.cs
- InlineObject.cs
- KeyValuePairs.cs
- SQLByte.cs
- ProvidePropertyAttribute.cs
- LocationReference.cs
- TableAutomationPeer.cs
- AssociationEndMember.cs
- DivideByZeroException.cs
- ArithmeticException.cs
- Utils.cs
- XsltConvert.cs
- SqlXml.cs
- ComponentEditorForm.cs
- DocumentSequence.cs
- XmlReaderSettings.cs
- Atom10FormatterFactory.cs
- ServiceNameElementCollection.cs
- TextTreeFixupNode.cs
- HiddenFieldPageStatePersister.cs
- HelpKeywordAttribute.cs
- Resources.Designer.cs
- ServiceBehaviorAttribute.cs
- OpCopier.cs
- UpDownEvent.cs
- CdpEqualityComparer.cs
- QuadTree.cs
- sortedlist.cs
- CompositeActivityDesigner.cs
- InvalidCommandTreeException.cs
- BitmapEffectDrawing.cs
- DataGridDetailsPresenterAutomationPeer.cs
- DataSourceView.cs
- PackWebRequestFactory.cs
- TrustSection.cs
- SafeNativeMethods.cs
- DateTimeOffset.cs