Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / LinqDataSourceValidationException.cs / 2 / 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; [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, 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataTableMapping.cs
- PrintPreviewGraphics.cs
- TakeQueryOptionExpression.cs
- WmlSelectionListAdapter.cs
- DataControlFieldCollection.cs
- DocumentPageTextView.cs
- ZeroOpNode.cs
- EventSourceCreationData.cs
- StoreContentChangedEventArgs.cs
- EditorPartChrome.cs
- Vector3DValueSerializer.cs
- ListControl.cs
- Math.cs
- SafeEventLogWriteHandle.cs
- ReturnType.cs
- FormsIdentity.cs
- LoginCancelEventArgs.cs
- PersistenceTypeAttribute.cs
- AppSettingsSection.cs
- WindowCollection.cs
- SchemaNamespaceManager.cs
- webeventbuffer.cs
- UidPropertyAttribute.cs
- BCryptNative.cs
- ScriptResourceAttribute.cs
- EntityObject.cs
- SubpageParaClient.cs
- _NativeSSPI.cs
- ProfilePropertyNameValidator.cs
- IndexOutOfRangeException.cs
- ListViewUpdatedEventArgs.cs
- TTSVoice.cs
- SqlPersistenceProviderFactory.cs
- SQLInt32.cs
- MetabaseReader.cs
- ComplusEndpointConfigContainer.cs
- FontFamily.cs
- ErrorHandler.cs
- WebAdminConfigurationHelper.cs
- StaticExtensionConverter.cs
- UserValidatedEventArgs.cs
- ObjectManager.cs
- DispatcherOperation.cs
- Property.cs
- Rotation3DAnimation.cs
- SqlProviderServices.cs
- LinqDataSourceStatusEventArgs.cs
- Internal.cs
- AutoSizeComboBox.cs
- DataGridRow.cs
- Sql8ExpressionRewriter.cs
- HttpCookiesSection.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- TextEndOfSegment.cs
- ApplicationTrust.cs
- SapiRecognizer.cs
- MetadataHelper.cs
- InspectionWorker.cs
- _NestedMultipleAsyncResult.cs
- UnmanagedMarshal.cs
- RowToFieldTransformer.cs
- MembershipPasswordException.cs
- ButtonStandardAdapter.cs
- Wildcard.cs
- DocumentPageViewAutomationPeer.cs
- ExitEventArgs.cs
- ObjectNavigationPropertyMapping.cs
- objectresult_tresulttype.cs
- DefaultTextStoreTextComposition.cs
- ColumnMapVisitor.cs
- Lookup.cs
- AssemblyNameProxy.cs
- SafeNativeMemoryHandle.cs
- HtmlAnchor.cs
- UIElementParaClient.cs
- WebServiceData.cs
- HtmlTableCellCollection.cs
- ContainerUtilities.cs
- TextFormatter.cs
- InvokeBinder.cs
- SectionXmlInfo.cs
- TreeSet.cs
- ImageSourceConverter.cs
- SecurityChannelFactory.cs
- GcSettings.cs
- URL.cs
- XamlGridLengthSerializer.cs
- PeerResolverMode.cs
- ZipIOLocalFileDataDescriptor.cs
- EndPoint.cs
- InputMethodStateTypeInfo.cs
- BulletedListEventArgs.cs
- MruCache.cs
- ArrayExtension.cs
- Trigger.cs
- SHA1CryptoServiceProvider.cs
- Formatter.cs
- DataGridColumn.cs
- WsdlBuildProvider.cs
- NumericUpDownAcceleration.cs