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
- UnsafeNativeMethodsTablet.cs
- ImageConverter.cs
- DataGridComponentEditor.cs
- WorkflowRuntimeServicesBehavior.cs
- NullableBoolConverter.cs
- ControlDesigner.cs
- EventSinkHelperWriter.cs
- SignatureToken.cs
- GridViewSelectEventArgs.cs
- Viewport3DAutomationPeer.cs
- CompositeDuplexElement.cs
- HttpClientCredentialType.cs
- EncryptedPackageFilter.cs
- EncryptedKeyIdentifierClause.cs
- MetadataItemEmitter.cs
- StrongNameMembershipCondition.cs
- RelationshipConstraintValidator.cs
- DateTimePicker.cs
- OdbcStatementHandle.cs
- TextElementCollection.cs
- WebPartMenu.cs
- ZipIOBlockManager.cs
- TraceFilter.cs
- FixedPageStructure.cs
- ProcessInputEventArgs.cs
- HotSpotCollection.cs
- X509CertificateCollection.cs
- HostProtectionException.cs
- DisplayMemberTemplateSelector.cs
- safex509handles.cs
- _SSPISessionCache.cs
- XmlReflectionMember.cs
- XPathArrayIterator.cs
- SymmetricAlgorithm.cs
- LinqDataSourceUpdateEventArgs.cs
- Socket.cs
- WorkingDirectoryEditor.cs
- ParseNumbers.cs
- VBIdentifierTrimConverter.cs
- DropShadowEffect.cs
- SimpleBitVector32.cs
- SizeChangedInfo.cs
- LowerCaseStringConverter.cs
- FormViewRow.cs
- BaseParser.cs
- Models.cs
- TypeLoader.cs
- OracleParameter.cs
- ConnectorDragDropGlyph.cs
- WindowClosedEventArgs.cs
- LeaseManager.cs
- XsltFunctions.cs
- TableCellCollection.cs
- MarkedHighlightComponent.cs
- ManagementEventWatcher.cs
- RewritingPass.cs
- LoginCancelEventArgs.cs
- AccessViolationException.cs
- ThreadPool.cs
- Image.cs
- ValidationResult.cs
- ButtonBase.cs
- InplaceBitmapMetadataWriter.cs
- WindowsContainer.cs
- datacache.cs
- ReferenceEqualityComparer.cs
- TextOptionsInternal.cs
- RC2CryptoServiceProvider.cs
- HttpCachePolicy.cs
- SerialPort.cs
- ChooseAction.cs
- XmlSubtreeReader.cs
- KoreanCalendar.cs
- CounterCreationData.cs
- OleServicesContext.cs
- VarRemapper.cs
- Brush.cs
- ExecutionScope.cs
- BitSet.cs
- tooltip.cs
- GridEntryCollection.cs
- CodeCastExpression.cs
- PageWrapper.cs
- TreeNodeStyle.cs
- CryptoApi.cs
- CapabilitiesSection.cs
- CodeSubDirectory.cs
- SizeFConverter.cs
- CompiledQueryCacheKey.cs
- HtmlInputButton.cs
- DoubleAnimationClockResource.cs
- ContextMenu.cs
- LinqDataSourceHelper.cs
- HtmlSelectionListAdapter.cs
- PreservationFileWriter.cs
- SqlConnectionStringBuilder.cs
- MimeTypeAttribute.cs
- InvalidDataException.cs
- XhtmlBasicValidationSummaryAdapter.cs
- SQLInt16Storage.cs