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
- SuppressMessageAttribute.cs
- PackWebResponse.cs
- XmlMemberMapping.cs
- BridgeDataReader.cs
- Sequence.cs
- LambdaCompiler.Lambda.cs
- SwitchAttribute.cs
- ReadWriteControlDesigner.cs
- UnicastIPAddressInformationCollection.cs
- Cloud.cs
- ReferentialConstraint.cs
- HitTestParameters3D.cs
- InternalEnumValidatorAttribute.cs
- FixedTextBuilder.cs
- DataGridItemAutomationPeer.cs
- ColumnWidthChangedEvent.cs
- PeerName.cs
- PropertyGridCommands.cs
- Utility.cs
- HostingEnvironment.cs
- RadioButtonStandardAdapter.cs
- MenuEventArgs.cs
- FileAuthorizationModule.cs
- TableLayoutSettings.cs
- XmlAttributeCache.cs
- FontWeights.cs
- KnownBoxes.cs
- DebugHandleTracker.cs
- UpDownBase.cs
- NominalTypeEliminator.cs
- SystemColorTracker.cs
- SoapClientProtocol.cs
- MulticastOption.cs
- PoisonMessageException.cs
- DetailsViewCommandEventArgs.cs
- FillBehavior.cs
- DelayedRegex.cs
- WindowsFormsSynchronizationContext.cs
- MemberRelationshipService.cs
- IsolatedStorageFileStream.cs
- WindowsListBox.cs
- ListViewCommandEventArgs.cs
- ColumnWidthChangingEvent.cs
- versioninfo.cs
- ConfigsHelper.cs
- InitializerFacet.cs
- SafePEFileHandle.cs
- HttpApplication.cs
- RuleRefElement.cs
- DocumentAutomationPeer.cs
- Adorner.cs
- XsltContext.cs
- SqlProcedureAttribute.cs
- GridViewUpdatedEventArgs.cs
- COM2ComponentEditor.cs
- HierarchicalDataSourceConverter.cs
- ConnectivityStatus.cs
- RelationshipType.cs
- ScopelessEnumAttribute.cs
- GeometryCombineModeValidation.cs
- DataBoundLiteralControl.cs
- LongPath.cs
- Processor.cs
- PropertyEntry.cs
- ConstructorExpr.cs
- GridToolTip.cs
- HtmlInputReset.cs
- ToolStripDropDownItem.cs
- HtmlMeta.cs
- SecurityChannelFaultConverter.cs
- GlyphingCache.cs
- ActivityDelegate.cs
- HostedBindingBehavior.cs
- AnnotationResource.cs
- RoutedUICommand.cs
- WindowsListBox.cs
- FormsAuthenticationEventArgs.cs
- DATA_BLOB.cs
- TreeNodeStyle.cs
- SamlConstants.cs
- NetworkCredential.cs
- ReadOnlyObservableCollection.cs
- WindowsSolidBrush.cs
- CompilerScope.Storage.cs
- BufferedReadStream.cs
- Completion.cs
- GlobalProxySelection.cs
- hresults.cs
- MethodRental.cs
- UnsafeNativeMethods.cs
- ListenerSingletonConnectionReader.cs
- SByteStorage.cs
- DataGrid.cs
- ConstructorArgumentAttribute.cs
- FontConverter.cs
- UserNameSecurityToken.cs
- RenderOptions.cs
- externdll.cs
- SchemaElementLookUpTable.cs
- Wizard.cs