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
- StaticTextPointer.cs
- EditingCommands.cs
- MemberAssignment.cs
- HiddenFieldPageStatePersister.cs
- ClassicBorderDecorator.cs
- CodeCatchClauseCollection.cs
- XmlSignificantWhitespace.cs
- EntryIndex.cs
- GeometryGroup.cs
- VectorCollectionValueSerializer.cs
- OutputBuffer.cs
- PhoneCallDesigner.cs
- ValidatorCollection.cs
- XmlSerializerAssemblyAttribute.cs
- PropertyStore.cs
- XmlUnspecifiedAttribute.cs
- ControlPropertyNameConverter.cs
- ChtmlCalendarAdapter.cs
- CalendarDay.cs
- ActivityExecutionContext.cs
- PerformanceCounterPermission.cs
- DataServiceException.cs
- StyleBamlTreeBuilder.cs
- EmissiveMaterial.cs
- QilUnary.cs
- ObjectDataSourceEventArgs.cs
- SoapAttributeOverrides.cs
- UpdateTracker.cs
- CanonicalizationDriver.cs
- Function.cs
- SHA256.cs
- LinqDataSourceUpdateEventArgs.cs
- TemplatedAdorner.cs
- MobileCapabilities.cs
- CreatingCookieEventArgs.cs
- ToggleButtonAutomationPeer.cs
- DynamicDataResources.Designer.cs
- SqlAggregateChecker.cs
- SHA256CryptoServiceProvider.cs
- Int16Animation.cs
- ReadOnlyDataSource.cs
- DeviceFilterDictionary.cs
- ItemCollectionEditor.cs
- TransactionState.cs
- SystemWebExtensionsSectionGroup.cs
- Configuration.cs
- TextTabProperties.cs
- NamespaceEmitter.cs
- ComboBoxItem.cs
- TextSelection.cs
- DecimalAnimationBase.cs
- ToolStripDropDownButton.cs
- PermissionListSet.cs
- SqlResolver.cs
- IChannel.cs
- TdsEnums.cs
- RIPEMD160.cs
- LineServices.cs
- InternalConfigHost.cs
- SiblingIterators.cs
- BrowserTree.cs
- XslAstAnalyzer.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TableLayout.cs
- Double.cs
- SqlDelegatedTransaction.cs
- TypeContext.cs
- HTMLTagNameToTypeMapper.cs
- X509Certificate2Collection.cs
- UInt64.cs
- XmlWrappingReader.cs
- ContextProperty.cs
- ListItemViewAttribute.cs
- TaskFormBase.cs
- Renderer.cs
- SimpleType.cs
- DBConnection.cs
- WindowInteropHelper.cs
- RenderTargetBitmap.cs
- ViewBox.cs
- WeakEventTable.cs
- XhtmlTextWriter.cs
- EntityFunctions.cs
- MemberMemberBinding.cs
- LocalizationParserHooks.cs
- TextDataBindingHandler.cs
- StartUpEventArgs.cs
- XmlUtil.cs
- TextRunCacheImp.cs
- DatatypeImplementation.cs
- HScrollBar.cs
- WinInetCache.cs
- AssemblyAttributesGoHere.cs
- TypefaceMap.cs
- ValidationRuleCollection.cs
- TextTreeTextNode.cs
- StringUtil.cs
- ObjectFullSpanRewriter.cs
- SocketStream.cs
- ServicesExceptionNotHandledEventArgs.cs