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
- SwitchLevelAttribute.cs
- DbExpressionRules.cs
- SQLBoolean.cs
- Thumb.cs
- Site.cs
- AnnotationService.cs
- NullRuntimeConfig.cs
- RightsManagementEncryptedStream.cs
- VisualStates.cs
- METAHEADER.cs
- DataServiceQueryProvider.cs
- DesignerActionPanel.cs
- NewItemsContextMenuStrip.cs
- IODescriptionAttribute.cs
- NotSupportedException.cs
- PropertyInformationCollection.cs
- SecurityUtils.cs
- StackOverflowException.cs
- SubMenuStyleCollection.cs
- FixedStringLookup.cs
- Evidence.cs
- BamlVersionHeader.cs
- hresults.cs
- SqlFactory.cs
- TreeNodeCollection.cs
- MetadataCache.cs
- BCryptHashAlgorithm.cs
- AdRotator.cs
- _Events.cs
- RsaSecurityTokenAuthenticator.cs
- XmlStrings.cs
- EastAsianLunisolarCalendar.cs
- SmtpDateTime.cs
- UnrecognizedAssertionsBindingElement.cs
- FixedPageProcessor.cs
- CompiledRegexRunnerFactory.cs
- StylusButton.cs
- recordstatefactory.cs
- ComplexTypeEmitter.cs
- ThreadAttributes.cs
- ListViewInsertionMark.cs
- DrawTreeNodeEventArgs.cs
- DirtyTextRange.cs
- TextBoxAutoCompleteSourceConverter.cs
- InputChannelAcceptor.cs
- CategoryNameCollection.cs
- SqlDataSourceConfigureSortForm.cs
- XmlTextReaderImpl.cs
- KnownTypesProvider.cs
- ObjectAnimationBase.cs
- TdsParserSafeHandles.cs
- DataControlCommands.cs
- InvalidProgramException.cs
- DataTemplateKey.cs
- SiteMapNodeCollection.cs
- ObjectNavigationPropertyMapping.cs
- cookiecollection.cs
- Classification.cs
- TextSelection.cs
- CounterCreationDataCollection.cs
- PathBox.cs
- AddInBase.cs
- PropertyGridDesigner.cs
- DataBinding.cs
- ModelToObjectValueConverter.cs
- TargetPerspective.cs
- ScrollBarAutomationPeer.cs
- WarningException.cs
- Configuration.cs
- TextReader.cs
- ContextMarshalException.cs
- BitmapFrame.cs
- LineBreakRecord.cs
- AsyncOperationManager.cs
- ColorAnimationUsingKeyFrames.cs
- ActivationServices.cs
- WebPartsSection.cs
- ListViewInsertionMark.cs
- Function.cs
- SharedDp.cs
- DataServiceSaveChangesEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- SoapAttributeAttribute.cs
- XmlUtilWriter.cs
- QueryCacheKey.cs
- HtmlSelectionListAdapter.cs
- ListViewDeleteEventArgs.cs
- ThreadExceptionDialog.cs
- SessionEndingEventArgs.cs
- LockedBorderGlyph.cs
- XsltException.cs
- DataGridViewColumnEventArgs.cs
- FactoryId.cs
- xsdvalidator.cs
- SoapConverter.cs
- Int32Animation.cs
- ReferencedType.cs
- Listener.cs
- RemotingException.cs
- BitSet.cs