Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XmlSchemaComplexType.cs
- StdValidatorsAndConverters.cs
- TextRunProperties.cs
- TextBoxBaseDesigner.cs
- PropertyStore.cs
- CapabilitiesState.cs
- OrderedDictionary.cs
- ProxyElement.cs
- TextSchema.cs
- GridViewHeaderRowPresenter.cs
- util.cs
- ZipIOExtraFieldElement.cs
- DbProviderManifest.cs
- DelimitedListTraceListener.cs
- ConfigurationElement.cs
- ToolStripTemplateNode.cs
- XmlObjectSerializerContext.cs
- sqlnorm.cs
- OdbcFactory.cs
- DataGridViewColumnEventArgs.cs
- ValueType.cs
- OdbcConnectionHandle.cs
- BlockCollection.cs
- XmlSchemaAttributeGroup.cs
- XmlAnyElementAttributes.cs
- XslNumber.cs
- WmlControlAdapter.cs
- BamlTreeNode.cs
- AutomationPeer.cs
- Evidence.cs
- GroupQuery.cs
- HybridDictionary.cs
- ScaleTransform3D.cs
- CompiledQuery.cs
- Codec.cs
- ConfigurationManager.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- HandlerBase.cs
- EntityDataSourceConfigureObjectContext.cs
- MultiSelectRootGridEntry.cs
- ServiceBuildProvider.cs
- XmlDataSourceNodeDescriptor.cs
- DeleteIndexBinder.cs
- TimersDescriptionAttribute.cs
- CodeGeneratorOptions.cs
- RIPEMD160.cs
- OracleRowUpdatedEventArgs.cs
- MenuBindingsEditorForm.cs
- ScriptResourceHandler.cs
- localization.cs
- hresults.cs
- BaseTemplateParser.cs
- UInt64.cs
- LeafCellTreeNode.cs
- PhoneCall.cs
- mediapermission.cs
- DynamicControlParameter.cs
- RuleInfoComparer.cs
- MissingSatelliteAssemblyException.cs
- DnsPermission.cs
- SchemaManager.cs
- SqlClientWrapperSmiStreamChars.cs
- TokenBasedSet.cs
- login.cs
- CompiledQueryCacheKey.cs
- DebugView.cs
- ColorTypeConverter.cs
- ToolStripStatusLabel.cs
- AssemblyName.cs
- PhonemeConverter.cs
- XmlSchemaRedefine.cs
- DeviceOverridableAttribute.cs
- ViewBox.cs
- EmptyQuery.cs
- LambdaCompiler.Binary.cs
- CodeMethodReturnStatement.cs
- Font.cs
- BamlVersionHeader.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- SafeRightsManagementPubHandle.cs
- NetworkAddressChange.cs
- MetadataSource.cs
- RootProjectionNode.cs
- BufferBuilder.cs
- StructuralComparisons.cs
- DataAdapter.cs
- PolyBezierSegment.cs
- ConnectionPoint.cs
- QuadraticBezierSegment.cs
- SafeEventHandle.cs
- NamespaceCollection.cs
- AttributeAction.cs
- HyperLink.cs
- EntityDataSourceWizardForm.cs
- Asn1IntegerConverter.cs
- WindowsFormsLinkLabel.cs
- MethodImplAttribute.cs
- EntityDataSourceSelectedEventArgs.cs
- ISFClipboardData.cs
- ForEachAction.cs