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
- SqlCacheDependencyDatabase.cs
- KerberosRequestorSecurityToken.cs
- LockRenewalTask.cs
- DbException.cs
- BufferedStream.cs
- DynamicActionMessageFilter.cs
- CodeSubDirectory.cs
- ByteRangeDownloader.cs
- ControlIdConverter.cs
- TableLayoutPanel.cs
- OleDbRowUpdatedEvent.cs
- WebPartMenu.cs
- ResXBuildProvider.cs
- TextContainerChangedEventArgs.cs
- Image.cs
- DbDataSourceEnumerator.cs
- NonParentingControl.cs
- WebServiceFault.cs
- ServiceModelEnumValidator.cs
- Parameter.cs
- PerformanceCounterPermissionEntryCollection.cs
- WebPartUserCapability.cs
- UnsettableComboBox.cs
- UpdateTracker.cs
- UIElement.cs
- CompoundFileStreamReference.cs
- DesignSurfaceCollection.cs
- GridViewRowEventArgs.cs
- RectKeyFrameCollection.cs
- XmlHierarchicalEnumerable.cs
- ToolStripSystemRenderer.cs
- NTAccount.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlSerializerSection.cs
- PermissionSet.cs
- XmlSchemaExporter.cs
- XsltException.cs
- BoundColumn.cs
- URLIdentityPermission.cs
- FreeFormDragDropManager.cs
- DataControlField.cs
- HandleCollector.cs
- ViewStateModeByIdAttribute.cs
- ParserContext.cs
- Memoizer.cs
- StringConverter.cs
- PreservationFileReader.cs
- WindowsListViewItemCheckBox.cs
- DataGridViewLinkCell.cs
- SchemaAttDef.cs
- LinqDataSource.cs
- RemotingConfigParser.cs
- SafeNativeMethodsOther.cs
- StandardTransformFactory.cs
- SchemaCollectionCompiler.cs
- ConnectionPoint.cs
- NameTable.cs
- TypeInitializationException.cs
- XmlArrayItemAttribute.cs
- oledbmetadatacolumnnames.cs
- BaseValidator.cs
- SafeMILHandleMemoryPressure.cs
- VariantWrapper.cs
- CompositeControl.cs
- BindingListCollectionView.cs
- StrokeRenderer.cs
- ServerProtocol.cs
- CellTreeNode.cs
- TreeIterators.cs
- RegularExpressionValidator.cs
- ConstructorBuilder.cs
- WindowsServiceElement.cs
- BitmapFrameDecode.cs
- ImageListDesigner.cs
- ImageAttributes.cs
- PixelFormat.cs
- RelationshipSet.cs
- DetailsViewInsertedEventArgs.cs
- Variable.cs
- Brush.cs
- RSAPKCS1KeyExchangeFormatter.cs
- UserNamePasswordValidationMode.cs
- XmlSerializerOperationGenerator.cs
- ActivityBuilderHelper.cs
- AuthorizationSection.cs
- SelectedCellsChangedEventArgs.cs
- Token.cs
- PerformanceCounterCategory.cs
- PointAnimationUsingKeyFrames.cs
- Label.cs
- Rights.cs
- DetailsViewDeletedEventArgs.cs
- HelloMessageApril2005.cs
- GridViewAutomationPeer.cs
- DesignSurfaceEvent.cs
- ArithmeticException.cs
- EntityViewGenerationAttribute.cs
- Subtree.cs
- OpenFileDialog.cs
- InstanceHandle.cs