Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- base64Transforms.cs
- DiffuseMaterial.cs
- StringToken.cs
- ConfigXmlSignificantWhitespace.cs
- HtmlMeta.cs
- NativeMethods.cs
- XLinq.cs
- ToolZone.cs
- ProgressiveCrcCalculatingStream.cs
- ConditionBrowserDialog.cs
- BindingContext.cs
- ComPlusAuthorization.cs
- ValueType.cs
- EventMemberCodeDomSerializer.cs
- CodeTryCatchFinallyStatement.cs
- Drawing.cs
- Speller.cs
- CodeGenerationManager.cs
- PersonalizationEntry.cs
- ApplicationSecurityManager.cs
- InkCollectionBehavior.cs
- FontClient.cs
- configsystem.cs
- ExpressionPrefixAttribute.cs
- CatalogPartChrome.cs
- Point4DConverter.cs
- HttpCacheVaryByContentEncodings.cs
- Lease.cs
- SqlMethodCallConverter.cs
- CfgRule.cs
- CodeExpressionCollection.cs
- IdentifierCollection.cs
- _SecureChannel.cs
- XmlAttributes.cs
- CommandHelper.cs
- DataTemplate.cs
- TypeConverterValueSerializer.cs
- TrackingStringDictionary.cs
- TypeConverterMarkupExtension.cs
- MonthChangedEventArgs.cs
- BatchParser.cs
- CqlLexer.cs
- BitmapEffectDrawing.cs
- NumericExpr.cs
- DataGridState.cs
- KeyInfo.cs
- TableCellAutomationPeer.cs
- UnsafeNativeMethodsPenimc.cs
- ToolStripDropDownClosedEventArgs.cs
- AvTraceFormat.cs
- SqlCacheDependency.cs
- AlternateViewCollection.cs
- DataRowCollection.cs
- FtpCachePolicyElement.cs
- Effect.cs
- GenericAuthenticationEventArgs.cs
- StreamedWorkflowDefinitionContext.cs
- ConfigurationErrorsException.cs
- SizeLimitedCache.cs
- BaseValidator.cs
- TrackingWorkflowEventArgs.cs
- Primitive.cs
- TriState.cs
- KnownTypesProvider.cs
- PerformanceCounterCategory.cs
- ITreeGenerator.cs
- DiscoveryClientReferences.cs
- OleDbTransaction.cs
- CustomAttribute.cs
- Facet.cs
- ConstraintEnumerator.cs
- NativeActivityTransactionContext.cs
- XPathNodeHelper.cs
- InstalledVoice.cs
- Events.cs
- ProtocolsSection.cs
- TraceContextRecord.cs
- TimestampInformation.cs
- InkCanvasAutomationPeer.cs
- SystemThemeKey.cs
- HMACSHA256.cs
- EntityDataSourceWrapper.cs
- IPEndPoint.cs
- Reference.cs
- PackagePart.cs
- mil_commands.cs
- MarkupCompilePass1.cs
- isolationinterop.cs
- InvalidAsynchronousStateException.cs
- ThousandthOfEmRealPoints.cs
- InputDevice.cs
- SID.cs
- FactoryGenerator.cs
- FileRegion.cs
- SerializationAttributes.cs
- FilterFactory.cs
- CallTemplateAction.cs
- DataPagerFieldItem.cs
- CompressEmulationStream.cs
- Win32PrintDialog.cs