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
- AlternationConverter.cs
- CodeVariableDeclarationStatement.cs
- LayoutTableCell.cs
- formatstringdialog.cs
- Int32Converter.cs
- ToolBarButton.cs
- SrgsOneOf.cs
- EventMappingSettingsCollection.cs
- ApplicationServicesHostFactory.cs
- RawTextInputReport.cs
- CurrentChangingEventArgs.cs
- IndexerHelper.cs
- Pens.cs
- DataTablePropertyDescriptor.cs
- HMACSHA1.cs
- MonitorWrapper.cs
- EntityDesignPluralizationHandler.cs
- HttpCookie.cs
- PropertySegmentSerializer.cs
- FreeFormDesigner.cs
- ConnectionManagementSection.cs
- MouseOverProperty.cs
- Binding.cs
- FormsAuthenticationUser.cs
- DisableDpiAwarenessAttribute.cs
- TextContainerHelper.cs
- TimeSpanStorage.cs
- UMPAttributes.cs
- DependencyPropertyHelper.cs
- ActivityExecutionContextCollection.cs
- LogicalExpressionEditor.cs
- TextSimpleMarkerProperties.cs
- TextServicesProperty.cs
- RequestSecurityToken.cs
- HostProtectionException.cs
- SafeHandles.cs
- TextPattern.cs
- TemplateComponentConnector.cs
- SchemaCollectionPreprocessor.cs
- Frame.cs
- ValidatedControlConverter.cs
- Pen.cs
- SessionStateSection.cs
- WindowsFormsSectionHandler.cs
- Page.cs
- ISFTagAndGuidCache.cs
- HttpServerVarsCollection.cs
- WorkflowMarkupSerializerMapping.cs
- precedingsibling.cs
- Invariant.cs
- XmlAttributes.cs
- ToolBarDesigner.cs
- ToolboxItemAttribute.cs
- HealthMonitoringSection.cs
- MediaEntryAttribute.cs
- RemoteWebConfigurationHostServer.cs
- BinaryHeap.cs
- DataContractSet.cs
- DynamicDataExtensions.cs
- WebServiceClientProxyGenerator.cs
- XmlWriterDelegator.cs
- TableCellAutomationPeer.cs
- ConnectionsZone.cs
- FactoryMaker.cs
- ConcurrentBag.cs
- CommandConverter.cs
- StylusPlugInCollection.cs
- EventItfInfo.cs
- XPathEmptyIterator.cs
- ArrayList.cs
- SystemIPv6InterfaceProperties.cs
- ByteAnimation.cs
- ResourceWriter.cs
- WebPartsSection.cs
- ActiveXHelper.cs
- XmlSchemaAppInfo.cs
- XamlTypeMapper.cs
- Win32.cs
- PackWebRequest.cs
- DataGridViewDataConnection.cs
- SelectorAutomationPeer.cs
- CompletionProxy.cs
- MetadataCache.cs
- SystemInfo.cs
- DocumentGrid.cs
- SchemaImporterExtensionElementCollection.cs
- XmlConvert.cs
- DigestComparer.cs
- XamlPoint3DCollectionSerializer.cs
- MetadataExchangeBindings.cs
- FontSourceCollection.cs
- FixedDocument.cs
- Number.cs
- _SSPIWrapper.cs
- UserControlCodeDomTreeGenerator.cs
- WorkflowRuntimeBehavior.cs
- DataControlImageButton.cs
- SqlDataRecord.cs
- SystemWebCachingSectionGroup.cs
- DbConnectionPoolIdentity.cs