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
- UserPersonalizationStateInfo.cs
- LocalBuilder.cs
- TraceHelpers.cs
- MdImport.cs
- RemotingConfigParser.cs
- TargetInvocationException.cs
- RuleSettingsCollection.cs
- RenderingEventArgs.cs
- XmlSchemaExternal.cs
- ContainerUIElement3D.cs
- ImageButton.cs
- DelegatingConfigHost.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- SetStateEventArgs.cs
- TreeNodeEventArgs.cs
- DrawingState.cs
- AttributeCollection.cs
- StylusCollection.cs
- AutomationPatternInfo.cs
- DesignerListAdapter.cs
- ObjectDataSourceMethodEditor.cs
- Helper.cs
- LocalizationParserHooks.cs
- InternalResources.cs
- URLIdentityPermission.cs
- MappingMetadataHelper.cs
- BookmarkManager.cs
- XPathNavigatorKeyComparer.cs
- OperandQuery.cs
- HighContrastHelper.cs
- HttpWebResponse.cs
- GregorianCalendarHelper.cs
- ApplicationServicesHostFactory.cs
- ServiceX509SecurityTokenProvider.cs
- MgmtConfigurationRecord.cs
- XsdDateTime.cs
- WindowsFormsHelpers.cs
- MemberCollection.cs
- ReflectTypeDescriptionProvider.cs
- ExtendLockAsyncResult.cs
- CredentialManagerDialog.cs
- ReadWriteControlDesigner.cs
- DiscoveryMessageSequenceGenerator.cs
- MultitargetUtil.cs
- serverconfig.cs
- TypePropertyEditor.cs
- FileUtil.cs
- ProjectedWrapper.cs
- Property.cs
- AnnotationHelper.cs
- Control.cs
- SchemaCollectionCompiler.cs
- HtmlShimManager.cs
- DataGridColumn.cs
- AssociationEndMember.cs
- Exceptions.cs
- CompositeFontParser.cs
- IPHostEntry.cs
- BigInt.cs
- ViewEvent.cs
- TextTreeUndo.cs
- HostingEnvironmentException.cs
- Reference.cs
- PropertyChangingEventArgs.cs
- DecoderNLS.cs
- ISO2022Encoding.cs
- StringResourceManager.cs
- SourceSwitch.cs
- RefType.cs
- UInt32Storage.cs
- RegexNode.cs
- DataSpaceManager.cs
- RenamedEventArgs.cs
- DBCommand.cs
- IndentedWriter.cs
- FacetValues.cs
- DataGridViewTextBoxColumn.cs
- UpdateCompiler.cs
- XmlSchemaSimpleContentExtension.cs
- ImageDrawing.cs
- TypefaceMetricsCache.cs
- ChtmlImageAdapter.cs
- Hashtable.cs
- SHA1.cs
- FileSecurity.cs
- CodeExporter.cs
- CellPartitioner.cs
- SqlFunctionAttribute.cs
- ZipIOFileItemStream.cs
- XmlUtf8RawTextWriter.cs
- LoadWorkflowByInstanceKeyCommand.cs
- LoaderAllocator.cs
- TextDocumentView.cs
- CurrentChangingEventArgs.cs
- BitmapEffectrendercontext.cs
- Expander.cs
- ReceiveParametersContent.cs
- DynamicRouteExpression.cs
- InternalUserCancelledException.cs
- CheckBox.cs