Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceValidationException.cs / 1305376 / 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
- SingleResultAttribute.cs
- SpeakCompletedEventArgs.cs
- ConstructorExpr.cs
- XmlSchemaSimpleType.cs
- ToolStripItemDataObject.cs
- ProxyElement.cs
- SqlConnectionStringBuilder.cs
- UrlAuthFailedErrorFormatter.cs
- SchemaImporterExtensionElementCollection.cs
- Int32Rect.cs
- FieldAccessException.cs
- ArrayConverter.cs
- TablePatternIdentifiers.cs
- VariantWrapper.cs
- OdbcConnectionFactory.cs
- SqlDataSourceStatusEventArgs.cs
- Compress.cs
- AppDomainFactory.cs
- TextTreeDeleteContentUndoUnit.cs
- SystemIPv4InterfaceProperties.cs
- TypeConverterHelper.cs
- CookieProtection.cs
- FormCollection.cs
- PreservationFileReader.cs
- DbDataRecord.cs
- ScriptReferenceBase.cs
- RelationshipType.cs
- ErrorHandler.cs
- DynamicDataManager.cs
- ExecutionContext.cs
- XmlException.cs
- ScriptingJsonSerializationSection.cs
- VisualStyleInformation.cs
- DllHostedComPlusServiceHost.cs
- ReaderWriterLock.cs
- ProfileBuildProvider.cs
- InputElement.cs
- StandardBindingImporter.cs
- ReadOnlyHierarchicalDataSourceView.cs
- BitmapEffectInput.cs
- RepeatInfo.cs
- Misc.cs
- StringComparer.cs
- DiscoveryReferences.cs
- UserControl.cs
- SoapTypeAttribute.cs
- NonParentingControl.cs
- AsymmetricSignatureDeformatter.cs
- PresentationTraceSources.cs
- StructuredType.cs
- filewebresponse.cs
- SiteMapDataSourceView.cs
- LinqDataView.cs
- KeyGestureValueSerializer.cs
- Operand.cs
- EventListenerClientSide.cs
- FatalException.cs
- SecurityState.cs
- SQLDoubleStorage.cs
- AnonymousIdentificationSection.cs
- RoleGroup.cs
- SmiSettersStream.cs
- ToolStripSplitButton.cs
- ContractNamespaceAttribute.cs
- XmlNamespaceManager.cs
- _CacheStreams.cs
- PropertyGridView.cs
- ObjectRef.cs
- GB18030Encoding.cs
- ObjectContext.cs
- ThrowHelper.cs
- RulePatternOps.cs
- FixedSOMTableRow.cs
- SerialReceived.cs
- HelpInfo.cs
- WeakEventManager.cs
- XmlSerializationWriter.cs
- MimeImporter.cs
- ClientProxyGenerator.cs
- ContactManager.cs
- WebBrowserUriTypeConverter.cs
- ObjectDesignerDataSourceView.cs
- RawAppCommandInputReport.cs
- EdmMember.cs
- SqlConnectionManager.cs
- DbMetaDataCollectionNames.cs
- UIElement.cs
- GeneratedContractType.cs
- SqlUtil.cs
- MsmqHostedTransportManager.cs
- OutputCacheSettingsSection.cs
- DBConnectionString.cs
- InvalidComObjectException.cs
- Knowncolors.cs
- Pair.cs
- CodeArgumentReferenceExpression.cs
- ImageFormatConverter.cs
- AbsoluteQuery.cs
- Query.cs
- SystemResources.cs