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
- FlowDocument.cs
- Pts.cs
- SchemaComplexType.cs
- ICollection.cs
- Attributes.cs
- TypeInformation.cs
- SByte.cs
- basecomparevalidator.cs
- XmlAtomicValue.cs
- RuleRefElement.cs
- SspiSecurityToken.cs
- CellLabel.cs
- NetStream.cs
- ContextStack.cs
- DocumentScope.cs
- shaperfactory.cs
- DynamicQueryableWrapper.cs
- DataControlLinkButton.cs
- ModelUIElement3D.cs
- Exceptions.cs
- WebBrowserPermission.cs
- PermissionAttributes.cs
- ValidationEventArgs.cs
- DebuggerService.cs
- RuleSettings.cs
- KeyValueSerializer.cs
- SecurityDocument.cs
- DummyDataSource.cs
- InitializationEventAttribute.cs
- Adorner.cs
- OpenTypeCommon.cs
- AQNBuilder.cs
- ObjectViewEntityCollectionData.cs
- TreeSet.cs
- _NTAuthentication.cs
- Base64Encoder.cs
- ContentIterators.cs
- storagemappingitemcollection.viewdictionary.cs
- WebPartUserCapability.cs
- Quad.cs
- NullEntityWrapper.cs
- SQLConvert.cs
- VisualBasic.cs
- ManipulationLogic.cs
- RealizedColumnsBlock.cs
- Line.cs
- _LoggingObject.cs
- WebServiceData.cs
- EntityAdapter.cs
- TypedTableHandler.cs
- HttpCapabilitiesBase.cs
- SQLInt32Storage.cs
- TransactionFilter.cs
- DesignTimeParseData.cs
- Registry.cs
- PropertyEmitter.cs
- RegistrySecurity.cs
- __ConsoleStream.cs
- SQLDateTime.cs
- InsufficientExecutionStackException.cs
- FixedHighlight.cs
- PanelDesigner.cs
- RuntimeConfigurationRecord.cs
- COM2AboutBoxPropertyDescriptor.cs
- WebPartManagerInternals.cs
- FamilyCollection.cs
- DesignTable.cs
- LockRecursionException.cs
- SqlFileStream.cs
- MenuScrollingVisibilityConverter.cs
- FrameworkTemplate.cs
- PassportAuthenticationEventArgs.cs
- JsonWriterDelegator.cs
- securitycriticaldataClass.cs
- DataGridTextColumn.cs
- Win32SafeHandles.cs
- ScrollContentPresenter.cs
- MetadataHelper.cs
- Stream.cs
- EventSourceCreationData.cs
- MSAAWinEventWrap.cs
- MasterPageParser.cs
- RangeValueProviderWrapper.cs
- BoundsDrawingContextWalker.cs
- NotificationContext.cs
- QueueProcessor.cs
- GenericAuthenticationEventArgs.cs
- HtmlLinkAdapter.cs
- AutomationProperties.cs
- HtmlInputControl.cs
- TextTreeRootTextBlock.cs
- LogStream.cs
- ToolTipAutomationPeer.cs
- SecurityUtils.cs
- StatusStrip.cs
- BamlBinaryReader.cs
- StatusBarPanel.cs
- ValueUtilsSmi.cs
- AdornerLayer.cs
- ListView.cs