Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- PackageRelationshipSelector.cs
- WindowsAuthenticationEventArgs.cs
- SelectedDatesCollection.cs
- CSharpCodeProvider.cs
- KerberosSecurityTokenParameters.cs
- TextBlock.cs
- ObjectAssociationEndMapping.cs
- AliasedSlot.cs
- DispatchProxy.cs
- SqlGenericUtil.cs
- ObjectReaderCompiler.cs
- loginstatus.cs
- GeometryHitTestResult.cs
- CellConstantDomain.cs
- SourceCollection.cs
- XmlSchemaSubstitutionGroup.cs
- CompilerGlobalScopeAttribute.cs
- Connection.cs
- Floater.cs
- ScriptDescriptor.cs
- FontDriver.cs
- ContextStaticAttribute.cs
- HtmlInputPassword.cs
- UniqueIdentifierService.cs
- UIElementCollection.cs
- HttpModuleActionCollection.cs
- TreeViewDesigner.cs
- NativeMethods.cs
- XmlAttributeAttribute.cs
- XmlHierarchicalEnumerable.cs
- ValidationError.cs
- remotingproxy.cs
- Group.cs
- SemanticBasicElement.cs
- _NtlmClient.cs
- CssTextWriter.cs
- ConfigXmlSignificantWhitespace.cs
- FlowDocumentFormatter.cs
- UserControl.cs
- HttpGetServerProtocol.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Activity.cs
- PostBackTrigger.cs
- ObjectSet.cs
- GridViewItemAutomationPeer.cs
- HandlerBase.cs
- ReferenceEqualityComparer.cs
- EnumerableValidator.cs
- ComponentEditorPage.cs
- LockingPersistenceProvider.cs
- MappingModelBuildProvider.cs
- RelationshipEnd.cs
- MetabaseServerConfig.cs
- JpegBitmapEncoder.cs
- NumericUpDown.cs
- RequestCacheManager.cs
- DataGridTablesFactory.cs
- GorillaCodec.cs
- StreamInfo.cs
- LogAppendAsyncResult.cs
- XmlTextReaderImpl.cs
- SchemaMapping.cs
- RoleService.cs
- UserControlBuildProvider.cs
- BindingNavigator.cs
- ImmutableObjectAttribute.cs
- WebServiceParameterData.cs
- SchemaObjectWriter.cs
- ConstraintConverter.cs
- EntityKey.cs
- StickyNoteHelper.cs
- Odbc32.cs
- StructuredTypeInfo.cs
- PriorityBindingExpression.cs
- SiteMapNodeItemEventArgs.cs
- XamlTreeBuilder.cs
- CollaborationHelperFunctions.cs
- FixedSOMTable.cs
- RoutedEvent.cs
- Mapping.cs
- DoubleLinkListEnumerator.cs
- LinqDataSourceSelectEventArgs.cs
- ThicknessConverter.cs
- Misc.cs
- DirectionalLight.cs
- JsonObjectDataContract.cs
- XamlPointCollectionSerializer.cs
- COM2IDispatchConverter.cs
- MaskedTextProvider.cs
- controlskin.cs
- DecimalAnimationBase.cs
- NumberSubstitution.cs
- RemotingAttributes.cs
- SqlDependencyListener.cs
- ProfileSection.cs
- OpCodes.cs
- PageRequestManager.cs
- NativeCppClassAttribute.cs
- ActivatedMessageQueue.cs
- CaseDesigner.xaml.cs