Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceValidationException.cs / 3 / 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
- SafeCancelMibChangeNotify.cs
- D3DImage.cs
- CommonRemoteMemoryBlock.cs
- TripleDESCryptoServiceProvider.cs
- FilterQuery.cs
- ModuleBuilderData.cs
- ReflectionPermission.cs
- PeerTransportSecuritySettings.cs
- CustomAttributeFormatException.cs
- SemanticAnalyzer.cs
- AutomationElementCollection.cs
- CompositeActivityValidator.cs
- SafeNativeMethodsCLR.cs
- WebBrowserNavigatingEventHandler.cs
- SelectionUIService.cs
- SettingsPropertyIsReadOnlyException.cs
- IndexerNameAttribute.cs
- TableDetailsCollection.cs
- mansign.cs
- TabItemWrapperAutomationPeer.cs
- DiscreteKeyFrames.cs
- SupportsEventValidationAttribute.cs
- SevenBitStream.cs
- MergePropertyDescriptor.cs
- StringValidatorAttribute.cs
- SqlParameterizer.cs
- KeyMatchBuilder.cs
- HScrollBar.cs
- MD5.cs
- ModelPerspective.cs
- LogSwitch.cs
- InstancePersistenceCommandException.cs
- SynchronizationContextHelper.cs
- EdmFunction.cs
- StringDictionary.cs
- SqlBooleanMismatchVisitor.cs
- PointLight.cs
- LicenseException.cs
- GridEntryCollection.cs
- PhysicalAddress.cs
- CryptoApi.cs
- Evaluator.cs
- AppendHelper.cs
- ReferenceSchema.cs
- CopyOnWriteList.cs
- ValidationErrorEventArgs.cs
- BitStream.cs
- entitydatasourceentitysetnameconverter.cs
- DataSysAttribute.cs
- ExpressionBuilder.cs
- StorageMappingItemCollection.cs
- XmlQualifiedName.cs
- NavigationExpr.cs
- HttpCachePolicy.cs
- HMACSHA256.cs
- GeneralTransformGroup.cs
- IIS7WorkerRequest.cs
- ListBoxItemWrapperAutomationPeer.cs
- SimpleHandlerBuildProvider.cs
- KnowledgeBase.cs
- InheritablePropertyChangeInfo.cs
- DataServiceRequestOfT.cs
- OdbcPermission.cs
- PersonalizationProviderHelper.cs
- EncoderExceptionFallback.cs
- AssemblyNameProxy.cs
- UserPersonalizationStateInfo.cs
- _IPv4Address.cs
- LayoutInformation.cs
- CommandTreeTypeHelper.cs
- ResourceReader.cs
- ValueChangedEventManager.cs
- TranslateTransform3D.cs
- WindowsSlider.cs
- PlatformCulture.cs
- ProfileServiceManager.cs
- DataGridViewButtonColumn.cs
- DataRelationPropertyDescriptor.cs
- PathFigure.cs
- MiniAssembly.cs
- StringPropertyBuilder.cs
- ThreadAbortException.cs
- CryptoApi.cs
- NullableFloatAverageAggregationOperator.cs
- DataControlLinkButton.cs
- DataGridViewRowPrePaintEventArgs.cs
- DependencyObject.cs
- PaginationProgressEventArgs.cs
- InvalidFilterCriteriaException.cs
- DrawingContextDrawingContextWalker.cs
- ColorAnimation.cs
- DataGridCommandEventArgs.cs
- CompiledRegexRunner.cs
- MetadataArtifactLoaderComposite.cs
- EditorPartCollection.cs
- EmptyEnumerable.cs
- AttributeData.cs
- MatrixAnimationUsingPath.cs
- SByte.cs
- MemberInitExpression.cs