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
- LogicalTreeHelper.cs
- ListViewAutomationPeer.cs
- PointValueSerializer.cs
- PartManifestEntry.cs
- CachedFontFace.cs
- OdbcConnectionHandle.cs
- CodeGroup.cs
- RestHandler.cs
- documentsequencetextpointer.cs
- Animatable.cs
- WebPartCatalogCloseVerb.cs
- DbConnectionFactory.cs
- AxWrapperGen.cs
- RNGCryptoServiceProvider.cs
- WpfPayload.cs
- HttpApplication.cs
- Assert.cs
- WeakReferenceEnumerator.cs
- MouseOverProperty.cs
- SymmetricSecurityProtocolFactory.cs
- EdmSchemaAttribute.cs
- DoubleLinkList.cs
- ObjectRef.cs
- HttpListenerRequest.cs
- ADConnectionHelper.cs
- SqlClientFactory.cs
- AppSettingsReader.cs
- ParentUndoUnit.cs
- ConfigurationStrings.cs
- StylusDownEventArgs.cs
- precedingsibling.cs
- MessageRpc.cs
- RegexCapture.cs
- FramingEncoders.cs
- FileDialog_Vista_Interop.cs
- lengthconverter.cs
- TargetParameterCountException.cs
- ExpressionPrinter.cs
- JapaneseLunisolarCalendar.cs
- WSSecureConversation.cs
- HashMembershipCondition.cs
- SingleTagSectionHandler.cs
- Path.cs
- Signature.cs
- MemberListBinding.cs
- CapabilitiesState.cs
- httpserverutility.cs
- complextypematerializer.cs
- AppDomainProtocolHandler.cs
- httpstaticobjectscollection.cs
- BigInt.cs
- UserPrincipalNameElement.cs
- ReadContentAsBinaryHelper.cs
- mediapermission.cs
- PrintController.cs
- ElementMarkupObject.cs
- JoinCqlBlock.cs
- SubMenuStyle.cs
- InProcStateClientManager.cs
- XmlTextWriter.cs
- WebPartEditorOkVerb.cs
- ISAPIRuntime.cs
- StandardToolWindows.cs
- OdbcConnectionHandle.cs
- SQLUtility.cs
- DataObject.cs
- WmpBitmapEncoder.cs
- DBConnection.cs
- EntityAdapter.cs
- BreakRecordTable.cs
- CalendarData.cs
- ElementsClipboardData.cs
- MailSettingsSection.cs
- CommandEventArgs.cs
- CompiledRegexRunnerFactory.cs
- EventLogEntry.cs
- TCEAdapterGenerator.cs
- TableLayoutRowStyleCollection.cs
- WasNotInstalledException.cs
- ExtendedTransformFactory.cs
- SiteOfOriginContainer.cs
- XmlLoader.cs
- IncrementalHitTester.cs
- XmlName.cs
- AttachedAnnotationChangedEventArgs.cs
- AccessControlList.cs
- MeasureData.cs
- XmlSchemaGroupRef.cs
- RuntimeArgumentHandle.cs
- ScriptRef.cs
- WebEventCodes.cs
- Types.cs
- LabelAutomationPeer.cs
- TraceListener.cs
- ChannelToken.cs
- XPathException.cs
- ItemDragEvent.cs
- unsafeIndexingFilterStream.cs
- CommonDialog.cs
- XmlReflectionImporter.cs