Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControls / System / Data / WebControls / EntityDataSourceValidationException.cs / 3 / 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
- WebEncodingValidatorAttribute.cs
- ModuleBuilderData.cs
- Vector3DCollectionConverter.cs
- DataSourceSelectArguments.cs
- ThreadStartException.cs
- GACMembershipCondition.cs
- ProfilePropertyNameValidator.cs
- EntityModelSchemaGenerator.cs
- ReliableChannelBinder.cs
- ProgressBarBrushConverter.cs
- RsaKeyIdentifierClause.cs
- EventMap.cs
- ConvertersCollection.cs
- FormViewInsertedEventArgs.cs
- _AutoWebProxyScriptWrapper.cs
- SettingsSavedEventArgs.cs
- HostExecutionContextManager.cs
- RectKeyFrameCollection.cs
- HtmlInputHidden.cs
- DomainConstraint.cs
- RedBlackList.cs
- SearchExpression.cs
- DependencyObjectValidator.cs
- NumberFunctions.cs
- RuleRef.cs
- URIFormatException.cs
- ScrollBarRenderer.cs
- XmlLoader.cs
- HtmlTableRowCollection.cs
- PathGeometry.cs
- XXXOnTypeBuilderInstantiation.cs
- Enlistment.cs
- FieldAccessException.cs
- Expression.cs
- SafeSecurityHelper.cs
- WhitespaceRuleReader.cs
- ElasticEase.cs
- AssemblyAssociatedContentFileAttribute.cs
- RootProfilePropertySettingsCollection.cs
- ManualResetEvent.cs
- SchemaDeclBase.cs
- BitmapImage.cs
- FullTrustAssembly.cs
- DesignTableCollection.cs
- DataServiceProviderWrapper.cs
- PreviewPageInfo.cs
- ServiceHostFactory.cs
- LineInfo.cs
- SlipBehavior.cs
- EntityCommandDefinition.cs
- StatusBar.cs
- DataServiceConfiguration.cs
- HtmlInputPassword.cs
- TextEndOfLine.cs
- DataReceivedEventArgs.cs
- TextElementEditingBehaviorAttribute.cs
- HtmlTable.cs
- Error.cs
- SerializableAttribute.cs
- BasePattern.cs
- querybuilder.cs
- DetailsViewInsertEventArgs.cs
- TextSelectionHelper.cs
- XmlHierarchicalDataSourceView.cs
- Command.cs
- ListBoxItem.cs
- SmtpReplyReader.cs
- RegistryPermission.cs
- XmlUtil.cs
- ConditionalWeakTable.cs
- DesignerActionItemCollection.cs
- datacache.cs
- ReservationNotFoundException.cs
- DirectoryRootQuery.cs
- DirectionalLight.cs
- SHA1.cs
- RenderDataDrawingContext.cs
- HtmlControlPersistable.cs
- mongolianshape.cs
- ConsoleCancelEventArgs.cs
- EntityDataSourceContainerNameConverter.cs
- ArrangedElement.cs
- AliasGenerator.cs
- _AcceptOverlappedAsyncResult.cs
- FlagsAttribute.cs
- DataViewManager.cs
- UIElement.cs
- Convert.cs
- HttpListener.cs
- PagedDataSource.cs
- Queue.cs
- PageSettings.cs
- HttpGetProtocolImporter.cs
- DataGridViewCellCollection.cs
- InvalidComObjectException.cs
- PropertyFilterAttribute.cs
- ScalarType.cs
- LabelEditEvent.cs
- ClockController.cs
- ObjectRef.cs