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
- _LazyAsyncResult.cs
- IPipelineRuntime.cs
- validationstate.cs
- XmlAttributeOverrides.cs
- MemoryMappedView.cs
- PerformanceCounterPermissionEntry.cs
- APCustomTypeDescriptor.cs
- DirectionalLight.cs
- RenderContext.cs
- InvalidCommandTreeException.cs
- FullTextState.cs
- HttpCacheVary.cs
- DesignerDataTable.cs
- AdditionalEntityFunctions.cs
- DeferredSelectedIndexReference.cs
- SerializerDescriptor.cs
- MouseDevice.cs
- FigureParagraph.cs
- TextServicesCompartmentEventSink.cs
- ReaderOutput.cs
- DataListItem.cs
- ListBoxItemWrapperAutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- ResourceKey.cs
- MissingMemberException.cs
- ListViewItem.cs
- DiscoveryServiceExtension.cs
- FixUp.cs
- BaseComponentEditor.cs
- FreezableOperations.cs
- SharedPerformanceCounter.cs
- LoadWorkflowByKeyAsyncResult.cs
- AccessControlEntry.cs
- DrawingContextWalker.cs
- Random.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- DeclaredTypeValidatorAttribute.cs
- SessionPageStatePersister.cs
- MouseActionConverter.cs
- ContextMenuStripGroupCollection.cs
- InProcStateClientManager.cs
- UnsafeNativeMethods.cs
- WebResourceUtil.cs
- BoundsDrawingContextWalker.cs
- ViewSimplifier.cs
- TextFormattingConverter.cs
- EntityDataSourceSelectedEventArgs.cs
- MimeTypePropertyAttribute.cs
- listitem.cs
- InsufficientMemoryException.cs
- DynamicDataExtensions.cs
- ResourcePool.cs
- CapabilitiesUse.cs
- ArrayTypeMismatchException.cs
- OleDbPropertySetGuid.cs
- NullableBoolConverter.cs
- CompileXomlTask.cs
- OrderablePartitioner.cs
- Graph.cs
- ObjectViewQueryResultData.cs
- CellCreator.cs
- WindowHideOrCloseTracker.cs
- Substitution.cs
- LinearGradientBrush.cs
- UpDownEvent.cs
- Action.cs
- MailAddressCollection.cs
- XmlSchemaElement.cs
- PasswordRecovery.cs
- CodeDomExtensionMethods.cs
- DataStreams.cs
- localization.cs
- Atom10FormatterFactory.cs
- CalendarData.cs
- CustomValidator.cs
- GridPatternIdentifiers.cs
- SchemaHelper.cs
- CodePageUtils.cs
- DetailsViewUpdateEventArgs.cs
- TextPenaltyModule.cs
- BamlResourceDeserializer.cs
- CodeSnippetStatement.cs
- GenerateHelper.cs
- SoapCodeExporter.cs
- tabpagecollectioneditor.cs
- HttpProtocolReflector.cs
- KnownTypeAttribute.cs
- VideoDrawing.cs
- BreadCrumbTextConverter.cs
- SqlProfileProvider.cs
- TdsParameterSetter.cs
- CharStorage.cs
- ObjectTypeMapping.cs
- SelectedDatesCollection.cs
- AnnotationObservableCollection.cs
- RepeatBehaviorConverter.cs
- SafeProcessHandle.cs
- PriorityQueue.cs
- ReachFixedDocumentSerializerAsync.cs
- BuildResultCache.cs