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
- XmlQueryTypeFactory.cs
- StylusLogic.cs
- GridViewRow.cs
- FactoryGenerator.cs
- CfgRule.cs
- ToolStripItemTextRenderEventArgs.cs
- StateWorkerRequest.cs
- DispatchChannelSink.cs
- DataRowExtensions.cs
- BinaryMessageEncodingBindingElement.cs
- HashAlgorithm.cs
- ObjectItemCollection.cs
- NativeObjectSecurity.cs
- ExternalException.cs
- ConnectionPoolManager.cs
- TransactionsSectionGroup.cs
- DesignerActionHeaderItem.cs
- Stack.cs
- SQLUtility.cs
- OneOfConst.cs
- ObjectReaderCompiler.cs
- ProgressBar.cs
- HasActivatableWorkflowEvent.cs
- DataGridPageChangedEventArgs.cs
- MissingMemberException.cs
- PEFileReader.cs
- TypeHelper.cs
- X509CertificateClaimSet.cs
- wgx_exports.cs
- BlockUIContainer.cs
- SendMailErrorEventArgs.cs
- UIElementPropertyUndoUnit.cs
- MergeFailedEvent.cs
- ApplicationDirectory.cs
- MessagePropertyFilter.cs
- Scripts.cs
- WindowsAuthenticationEventArgs.cs
- DetailsViewModeEventArgs.cs
- ListViewGroupItemCollection.cs
- CallbackValidator.cs
- IApplicationTrustManager.cs
- MimeMapping.cs
- BamlTreeNode.cs
- XPathParser.cs
- HasCopySemanticsAttribute.cs
- RectAnimation.cs
- Message.cs
- AnnotationHighlightLayer.cs
- Variant.cs
- FilterElement.cs
- EdmToObjectNamespaceMap.cs
- ExceptionRoutedEventArgs.cs
- DrawingDrawingContext.cs
- ControlUtil.cs
- AuthenticationConfig.cs
- EventData.cs
- TargetControlTypeAttribute.cs
- TransactionContextValidator.cs
- Pair.cs
- WindowsStartMenu.cs
- NotFiniteNumberException.cs
- DataGridViewColumn.cs
- MediaEntryAttribute.cs
- PixelFormat.cs
- TakeOrSkipQueryOperator.cs
- CrossContextChannel.cs
- HeaderUtility.cs
- ToolBarOverflowPanel.cs
- RepeaterItemEventArgs.cs
- CodeIdentifier.cs
- Bits.cs
- ThreadExceptionEvent.cs
- StoragePropertyMapping.cs
- ObjectQuery.cs
- Debugger.cs
- FaultContractAttribute.cs
- UIntPtr.cs
- TypeSystem.cs
- MultiPropertyDescriptorGridEntry.cs
- DebuggerService.cs
- ConfigXmlAttribute.cs
- Adorner.cs
- DataGridItemAutomationPeer.cs
- BmpBitmapEncoder.cs
- InstanceLockQueryResult.cs
- IQueryable.cs
- AjaxFrameworkAssemblyAttribute.cs
- RSAPKCS1KeyExchangeFormatter.cs
- OledbConnectionStringbuilder.cs
- mda.cs
- DrawingImage.cs
- PermissionListSet.cs
- UriTemplatePathSegment.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CodeDirectionExpression.cs
- KeyConverter.cs
- SchemaImporter.cs
- TextViewBase.cs
- JulianCalendar.cs
- BindingObserver.cs