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
- ImageCodecInfo.cs
- ColumnCollectionEditor.cs
- Parallel.cs
- dsa.cs
- BufferCache.cs
- BamlCollectionHolder.cs
- TemplatedAdorner.cs
- SafeNativeMethods.cs
- Scripts.cs
- WebBrowserEvent.cs
- ObsoleteAttribute.cs
- XmlILStorageConverter.cs
- ValidationEventArgs.cs
- ExeContext.cs
- ValueTypeFixupInfo.cs
- BooleanAnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- DrawingGroup.cs
- IndependentAnimationStorage.cs
- VisualStyleElement.cs
- MailWebEventProvider.cs
- NativeCppClassAttribute.cs
- ToolZone.cs
- DataMisalignedException.cs
- EntityDataSourceDesignerHelper.cs
- ScriptReferenceEventArgs.cs
- XmlUrlResolver.cs
- TableSectionStyle.cs
- SystemIPv4InterfaceProperties.cs
- TagMapInfo.cs
- PrivilegedConfigurationManager.cs
- ExecutionContext.cs
- TextPointerBase.cs
- LocalizableAttribute.cs
- DateTimeOffsetAdapter.cs
- GradientStop.cs
- ActivityScheduledQuery.cs
- DesignerVerb.cs
- DESCryptoServiceProvider.cs
- DataGridState.cs
- InfoCardSymmetricCrypto.cs
- HtmlElementErrorEventArgs.cs
- Visual3D.cs
- HtmlControlDesigner.cs
- TrackingExtract.cs
- SelectiveScrollingGrid.cs
- HtmlEmptyTagControlBuilder.cs
- MouseButton.cs
- Helpers.cs
- XmlChildEnumerator.cs
- _NestedMultipleAsyncResult.cs
- BodyGlyph.cs
- NotifyParentPropertyAttribute.cs
- StylusPointPropertyInfoDefaults.cs
- DataSvcMapFileSerializer.cs
- Evidence.cs
- ClosableStream.cs
- DataGridLinkButton.cs
- ClientApiGenerator.cs
- MultipleFilterMatchesException.cs
- FigureHelper.cs
- RegexTree.cs
- AsyncStreamReader.cs
- DesignerDeviceConfig.cs
- RemotingConfiguration.cs
- ExpressionPrefixAttribute.cs
- DataGridViewSelectedColumnCollection.cs
- AuthenticationConfig.cs
- EncoderNLS.cs
- MsdtcWrapper.cs
- SHA384.cs
- DbConnectionPool.cs
- SystemIPGlobalProperties.cs
- ConditionedDesigner.cs
- PrincipalPermission.cs
- ReliableSessionBindingElementImporter.cs
- PrintDialog.cs
- ActivityValidationServices.cs
- UriTemplateLiteralQueryValue.cs
- MetadataPropertyCollection.cs
- SecUtil.cs
- AutoSizeToolBoxItem.cs
- TextEditorTables.cs
- EmbeddedMailObjectCollectionEditor.cs
- WebBrowserNavigatingEventHandler.cs
- ObjectFullSpanRewriter.cs
- SubpageParagraph.cs
- JoinTreeNode.cs
- SimpleBitVector32.cs
- DPTypeDescriptorContext.cs
- EventSourceCreationData.cs
- EventProviderClassic.cs
- CommonProperties.cs
- InstanceKeyNotReadyException.cs
- DataControlImageButton.cs
- RegisteredScript.cs
- HashLookup.cs
- PipelineComponent.cs
- KeyTimeConverter.cs
- newinstructionaction.cs