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
- SharedHttpsTransportManager.cs
- Invariant.cs
- HostingEnvironmentSection.cs
- GeometryDrawing.cs
- COM2PictureConverter.cs
- DataMisalignedException.cs
- BindingNavigatorDesigner.cs
- XhtmlTextWriter.cs
- DoubleCollection.cs
- StylusButtonCollection.cs
- IsolatedStorage.cs
- WebContentFormatHelper.cs
- WorkflowViewService.cs
- PersonalizationState.cs
- MappedMetaModel.cs
- QueryExpr.cs
- XmlWriter.cs
- StyleHelper.cs
- HttpDictionary.cs
- XmlCustomFormatter.cs
- LinkClickEvent.cs
- UnicodeEncoding.cs
- SqlProfileProvider.cs
- Util.cs
- WebPartRestoreVerb.cs
- HierarchicalDataBoundControl.cs
- ConfigXmlText.cs
- FlowNode.cs
- DomNameTable.cs
- LookupNode.cs
- VisualTarget.cs
- QueryOperationResponseOfT.cs
- XmlMapping.cs
- AttachedPropertyMethodSelector.cs
- XmlSchemaAttribute.cs
- ReadOnlyHierarchicalDataSourceView.cs
- InternalException.cs
- Transform3DCollection.cs
- CqlGenerator.cs
- TimeIntervalCollection.cs
- EventHandlers.cs
- ReferenceEqualityComparer.cs
- LongValidatorAttribute.cs
- Substitution.cs
- _Connection.cs
- TransactionOptions.cs
- FontSizeConverter.cs
- SamlNameIdentifierClaimResource.cs
- SmiConnection.cs
- TypedElement.cs
- UnmanagedMarshal.cs
- MetadataItem.cs
- ChannelDispatcherBase.cs
- Compensate.cs
- FixedSOMElement.cs
- CodeTypeDeclaration.cs
- LocalBuilder.cs
- SourceChangedEventArgs.cs
- WmpBitmapDecoder.cs
- RewritingValidator.cs
- ArcSegment.cs
- DomainLiteralReader.cs
- DataDocumentXPathNavigator.cs
- TraceProvider.cs
- NotSupportedException.cs
- WindowsIdentity.cs
- SemanticBasicElement.cs
- NotifyParentPropertyAttribute.cs
- UserControl.cs
- ToolStripSeparator.cs
- NodeFunctions.cs
- ResXBuildProvider.cs
- FontStyles.cs
- HighlightVisual.cs
- ApplicationActivator.cs
- AssemblyFilter.cs
- WebPartsSection.cs
- ControlIdConverter.cs
- COM2PropertyPageUITypeConverter.cs
- Type.cs
- DesignerActionService.cs
- AsyncOperation.cs
- DataGridCell.cs
- SqlCommandBuilder.cs
- TextDecoration.cs
- NetCodeGroup.cs
- FixedHyperLink.cs
- ConfigurationProperty.cs
- Model3DCollection.cs
- AnnotationResourceChangedEventArgs.cs
- UIntPtr.cs
- ActivityMarkupSerializationProvider.cs
- Pkcs9Attribute.cs
- WebCategoryAttribute.cs
- Soap12ServerProtocol.cs
- IsolatedStorageFileStream.cs
- SqlDataSourceSelectingEventArgs.cs
- FieldToken.cs
- ComponentResourceKeyConverter.cs
- LockedActivityGlyph.cs