Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqDataSourceValidationException.cs / 1 / LinqDataSourceValidationException.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- // NOTE: Suppress messages for CA2126 and CA2114 work around FxCop bugs that are resolved in the latest FxCop release. namespace System.Web.UI.WebControls { using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using System.Security.Permissions; using System.Web.Resources; using System.Web.DynamicData; [SuppressMessage("Microsoft.Security", "CA2126:TypeLinkDemandsRequireInheritanceDemands", Justification="Workaround for FxCop Bug")] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [Serializable] public class LinqDataSourceValidationException : Exception, IDynamicValidatorException, ISerializable { private IDictionary_innerExceptions; public LinqDataSourceValidationException() : base(AtlasWeb.LinqDataSourceValidationException_ValidationFailed) { } public LinqDataSourceValidationException(string message) : base(message) { } public LinqDataSourceValidationException(string message, Exception innerException) : base(message, innerException) { } public LinqDataSourceValidationException(string message, IDictionary innerExceptions) : this(message) { _innerExceptions = innerExceptions; } protected LinqDataSourceValidationException(SerializationInfo info, StreamingContext context) : base(info, context) { _innerExceptions = (IDictionary ) info.GetValue("InnerExceptions", typeof(IDictionary )); } public IDictionary InnerExceptions { get { if (_innerExceptions == null) { _innerExceptions = new Dictionary (StringComparer.OrdinalIgnoreCase); } return _innerExceptions; } } [SuppressMessage("Microsoft.Security", "CA2114:MethodSecurityShouldBeASupersetOfType", Justification = "Workaround for FxCop Bug")] [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification="Base exception doesn't declare the AspNetHostingPermission link demand required by this class")] [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("InnerExceptions", InnerExceptions, typeof(IDictionary )); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- // NOTE: Suppress messages for CA2126 and CA2114 work around FxCop bugs that are resolved in the latest FxCop release. namespace System.Web.UI.WebControls { using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; using System.Security.Permissions; using System.Web.Resources; using System.Web.DynamicData; [SuppressMessage("Microsoft.Security", "CA2126:TypeLinkDemandsRequireInheritanceDemands", Justification="Workaround for FxCop Bug")] [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)] [Serializable] public class LinqDataSourceValidationException : Exception, IDynamicValidatorException, ISerializable { private IDictionary_innerExceptions; public LinqDataSourceValidationException() : base(AtlasWeb.LinqDataSourceValidationException_ValidationFailed) { } public LinqDataSourceValidationException(string message) : base(message) { } public LinqDataSourceValidationException(string message, Exception innerException) : base(message, innerException) { } public LinqDataSourceValidationException(string message, IDictionary innerExceptions) : this(message) { _innerExceptions = innerExceptions; } protected LinqDataSourceValidationException(SerializationInfo info, StreamingContext context) : base(info, context) { _innerExceptions = (IDictionary ) info.GetValue("InnerExceptions", typeof(IDictionary )); } public IDictionary InnerExceptions { get { if (_innerExceptions == null) { _innerExceptions = new Dictionary (StringComparer.OrdinalIgnoreCase); } return _innerExceptions; } } [SuppressMessage("Microsoft.Security", "CA2114:MethodSecurityShouldBeASupersetOfType", Justification = "Workaround for FxCop Bug")] [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase", Justification="Base exception doesn't declare the AspNetHostingPermission link demand required by this class")] [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("InnerExceptions", InnerExceptions, typeof(IDictionary )); } } } // 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
- DataPagerField.cs
- FlagsAttribute.cs
- ObjectDataSourceFilteringEventArgs.cs
- HtmlHistory.cs
- HtmlControl.cs
- LineGeometry.cs
- TextElementAutomationPeer.cs
- BindingExpressionBase.cs
- DiffuseMaterial.cs
- _DigestClient.cs
- StructuredType.cs
- HtmlControl.cs
- ExtenderControl.cs
- NeutralResourcesLanguageAttribute.cs
- ADMembershipProvider.cs
- HierarchicalDataSourceControl.cs
- DbCommandDefinition.cs
- CharEnumerator.cs
- EditorPartDesigner.cs
- StatusBarAutomationPeer.cs
- BoundPropertyEntry.cs
- WindowsIdentity.cs
- Animatable.cs
- HelpInfo.cs
- HttpFormatExtensions.cs
- DataGridLengthConverter.cs
- CodeTypeParameter.cs
- FlowDocumentScrollViewer.cs
- SqlResolver.cs
- MultilineStringEditor.cs
- Metadata.cs
- FillRuleValidation.cs
- AccessViolationException.cs
- Setter.cs
- CharEntityEncoderFallback.cs
- ElasticEase.cs
- KeyEvent.cs
- SQLBinaryStorage.cs
- ProjectionCamera.cs
- CreationContext.cs
- FormsAuthenticationUserCollection.cs
- HasActivatableWorkflowEvent.cs
- VerificationAttribute.cs
- EntityProxyFactory.cs
- BypassElementCollection.cs
- SQLMoney.cs
- DBSqlParserTableCollection.cs
- SparseMemoryStream.cs
- Journal.cs
- ConstrainedDataObject.cs
- XmlCompatibilityReader.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- ThreadSafeList.cs
- DetailsViewInsertedEventArgs.cs
- NavigateEvent.cs
- ToolboxItemAttribute.cs
- DependencyObjectType.cs
- CodeExporter.cs
- UserControlBuildProvider.cs
- CheckBoxBaseAdapter.cs
- Int16Storage.cs
- HtmlImage.cs
- Completion.cs
- ContravarianceAdapter.cs
- DataBoundControl.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SqlProviderUtilities.cs
- LockRecoveryTask.cs
- WebServiceEnumData.cs
- GeometryModel3D.cs
- XslNumber.cs
- ValidationErrorEventArgs.cs
- FreezableOperations.cs
- FlowDocumentPage.cs
- ViewPort3D.cs
- Renderer.cs
- CapabilitiesPattern.cs
- StaticTextPointer.cs
- FlowLayoutSettings.cs
- XmlDataSourceView.cs
- WebBrowserBase.cs
- RuntimeResourceSet.cs
- MethodBody.cs
- filewebrequest.cs
- DSASignatureFormatter.cs
- DbXmlEnabledProviderManifest.cs
- IsolatedStorageFilePermission.cs
- ToolStripRendererSwitcher.cs
- DefaultIfEmptyQueryOperator.cs
- ExceptionRoutedEventArgs.cs
- AbstractSvcMapFileLoader.cs
- CreateUserWizardStep.cs
- TableLayoutColumnStyleCollection.cs
- AppDomainManager.cs
- entityreference_tresulttype.cs
- PresentationAppDomainManager.cs
- Subtree.cs
- PointConverter.cs
- Knowncolors.cs
- EncoderParameter.cs