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
- OneOf.cs
- DataGridViewUtilities.cs
- HttpHandler.cs
- ToolStripOverflowButton.cs
- SpecularMaterial.cs
- SQLInt64.cs
- FocusChangedEventArgs.cs
- wgx_render.cs
- Themes.cs
- CqlParserHelpers.cs
- SqlFunctionAttribute.cs
- SiteMapProvider.cs
- DebugView.cs
- RichTextBox.cs
- Stack.cs
- MemberProjectedSlot.cs
- StreamHelper.cs
- ProxyHelper.cs
- OracleEncoding.cs
- PropertyGroupDescription.cs
- ItemMap.cs
- AggregationMinMaxHelpers.cs
- Point4DConverter.cs
- SqlCommandSet.cs
- WebServiceResponseDesigner.cs
- FontCacheLogic.cs
- LinkedResourceCollection.cs
- ImmComposition.cs
- PnrpPermission.cs
- TextDecorations.cs
- Identity.cs
- SafeTimerHandle.cs
- TemplateBindingExtensionConverter.cs
- TempFiles.cs
- Privilege.cs
- ActivityExecutorOperation.cs
- DataControlFieldHeaderCell.cs
- _TransmitFileOverlappedAsyncResult.cs
- CheckBoxStandardAdapter.cs
- TabPageDesigner.cs
- Vector3DCollectionValueSerializer.cs
- Matrix.cs
- RegexCharClass.cs
- TreeNodeStyleCollection.cs
- DesignerSerializationVisibilityAttribute.cs
- TypeDescriptionProviderAttribute.cs
- ControlOperationBehavior.cs
- RuleProcessor.cs
- LinkLabel.cs
- CellPartitioner.cs
- SelectionItemProviderWrapper.cs
- ObjectQueryExecutionPlan.cs
- IntSecurity.cs
- SoapAttributeAttribute.cs
- CellParagraph.cs
- Popup.cs
- BaseUriHelper.cs
- OLEDB_Enum.cs
- DateTimeConverter.cs
- CompilerWrapper.cs
- CrossContextChannel.cs
- BinHexEncoding.cs
- UpdateDelegates.Generated.cs
- SystemException.cs
- CurrencyWrapper.cs
- ConnectionInterfaceCollection.cs
- RepeatBehavior.cs
- QueueProcessor.cs
- GroupItem.cs
- InfoCard.cs
- BinaryMethodMessage.cs
- InvalidAsynchronousStateException.cs
- FixedSOMImage.cs
- BounceEase.cs
- PassportAuthenticationModule.cs
- RowVisual.cs
- DataGridColumnsPage.cs
- Point4DValueSerializer.cs
- WindowsEditBox.cs
- ButtonColumn.cs
- Comparer.cs
- Symbol.cs
- DbSetClause.cs
- HttpCacheParams.cs
- OleDbMetaDataFactory.cs
- ButtonBase.cs
- SiteMapHierarchicalDataSourceView.cs
- ItemsPresenter.cs
- Funcletizer.cs
- DbModificationClause.cs
- Collection.cs
- SeekStoryboard.cs
- X509Certificate2Collection.cs
- WMIInterop.cs
- SiteIdentityPermission.cs
- SmiEventSink_Default.cs
- ValidationHelper.cs
- SelectionRange.cs
- RuntimeConfigurationRecord.cs
- Single.cs