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
- DesignSurfaceManager.cs
- BCryptSafeHandles.cs
- XslVisitor.cs
- AsyncResult.cs
- odbcmetadatafactory.cs
- Invariant.cs
- GlyphingCache.cs
- TransactionContextManager.cs
- FullTextLine.cs
- XsdValidatingReader.cs
- HtmlDocument.cs
- StandardMenuStripVerb.cs
- RemotingSurrogateSelector.cs
- AspNetSynchronizationContext.cs
- EntityDataSourceReferenceGroup.cs
- ConfigurationValues.cs
- PageContentCollection.cs
- TrustExchangeException.cs
- StylusPlugin.cs
- SafeNativeMethodsMilCoreApi.cs
- HttpRawResponse.cs
- FileLogRecordHeader.cs
- Sentence.cs
- BaseInfoTable.cs
- IRCollection.cs
- CopyNamespacesAction.cs
- SimpleColumnProvider.cs
- VisualStyleRenderer.cs
- Configuration.cs
- HttpRequestCacheValidator.cs
- XmlLanguageConverter.cs
- ReachDocumentPageSerializerAsync.cs
- SingleResultAttribute.cs
- MenuCommandService.cs
- GridViewDesigner.cs
- SoapInteropTypes.cs
- MetadataPropertyvalue.cs
- IntermediatePolicyValidator.cs
- RpcAsyncResult.cs
- WebBrowser.cs
- ContractHandle.cs
- StylusCaptureWithinProperty.cs
- COM2PropertyDescriptor.cs
- Clock.cs
- GB18030Encoding.cs
- Speller.cs
- ValueConversionAttribute.cs
- StringUtil.cs
- SqlIdentifier.cs
- Menu.cs
- ScalarOps.cs
- SQLRoleProvider.cs
- SQLStringStorage.cs
- GroupItemAutomationPeer.cs
- PageParserFilter.cs
- ExpressionBuilderCollection.cs
- HtmlContainerControl.cs
- ClassicBorderDecorator.cs
- XmlDocumentFragment.cs
- GridErrorDlg.cs
- RewritingValidator.cs
- Message.cs
- TypeHelper.cs
- HostVisual.cs
- DocumentApplicationState.cs
- DataServiceCollectionOfT.cs
- QilScopedVisitor.cs
- EventRoute.cs
- CalloutQueueItem.cs
- MimeBasePart.cs
- MD5CryptoServiceProvider.cs
- ItemAutomationPeer.cs
- WebScriptMetadataMessageEncoderFactory.cs
- HostUtils.cs
- VirtualPathUtility.cs
- SynchronizedInputProviderWrapper.cs
- DesignerSerializerAttribute.cs
- SpecialFolderEnumConverter.cs
- StreamingContext.cs
- AsmxEndpointPickerExtension.cs
- SplitterEvent.cs
- PublisherMembershipCondition.cs
- XmlSerializerVersionAttribute.cs
- HttpDictionary.cs
- ConnectAlgorithms.cs
- NameSpaceEvent.cs
- ToolStripContainerActionList.cs
- OutputCacheProfile.cs
- ProcessModule.cs
- SafeRegistryKey.cs
- Point.cs
- QueryAccessibilityHelpEvent.cs
- InstallerTypeAttribute.cs
- RegistryConfigurationProvider.cs
- ConfigXmlComment.cs
- ComponentSerializationService.cs
- odbcmetadatacolumnnames.cs
- PingOptions.cs
- DataControlFieldHeaderCell.cs
- DataGridTextBox.cs