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
- RadioButtonPopupAdapter.cs
- AjaxFrameworkAssemblyAttribute.cs
- AmbientLight.cs
- WebPartConnectionsConfigureVerb.cs
- OdbcDataReader.cs
- RectangleConverter.cs
- QilDataSource.cs
- SystemWebCachingSectionGroup.cs
- StringUtil.cs
- SortQuery.cs
- CompositeDataBoundControl.cs
- ThreadExceptionDialog.cs
- ToolboxService.cs
- RenderData.cs
- TypeNameConverter.cs
- FillBehavior.cs
- XPathEmptyIterator.cs
- QEncodedStream.cs
- DbConnectionOptions.cs
- WorkflowTraceTransfer.cs
- SortDescriptionCollection.cs
- Button.cs
- CqlParserHelpers.cs
- RefreshPropertiesAttribute.cs
- LicenseManager.cs
- AjaxFrameworkAssemblyAttribute.cs
- AsynchronousChannelMergeEnumerator.cs
- VectorKeyFrameCollection.cs
- CustomValidator.cs
- PrivateFontCollection.cs
- SecurityState.cs
- SQLDoubleStorage.cs
- PersonalizationProvider.cs
- DataKey.cs
- StylusEventArgs.cs
- PartitionedStreamMerger.cs
- MgmtConfigurationRecord.cs
- EntityDataSourceMemberPath.cs
- BindingExpression.cs
- EntityDataSourceDataSelection.cs
- ServiceOperation.cs
- BitmapInitialize.cs
- StylusButtonEventArgs.cs
- Propagator.Evaluator.cs
- ReceiveContext.cs
- ToolStripGrip.cs
- TypeHelpers.cs
- listviewsubitemcollectioneditor.cs
- ListenerBinder.cs
- SiteMapProvider.cs
- RightsManagementInformation.cs
- DBAsyncResult.cs
- OrderedParallelQuery.cs
- ObjectTag.cs
- SchemaImporterExtension.cs
- ColumnWidthChangingEvent.cs
- StringPropertyBuilder.cs
- ProxyElement.cs
- CacheModeValueSerializer.cs
- MergeFailedEvent.cs
- ContainerAction.cs
- XmlSchemaInclude.cs
- ObjectParameter.cs
- TdsParserStaticMethods.cs
- SqlBooleanizer.cs
- PngBitmapEncoder.cs
- ListenerElementsCollection.cs
- ProvidePropertyAttribute.cs
- KernelTypeValidation.cs
- CustomErrorsSection.cs
- GraphicsPath.cs
- StrongNameMembershipCondition.cs
- ToolStripDropDownClosingEventArgs.cs
- OletxEnlistment.cs
- AccessibleObject.cs
- WebPartZoneBaseDesigner.cs
- DbgCompiler.cs
- PersonalizationProviderCollection.cs
- PageTheme.cs
- XmlEncodedRawTextWriter.cs
- OutputCacheModule.cs
- PathGeometry.cs
- util.cs
- SamlAuthorityBinding.cs
- SqlCachedBuffer.cs
- _NtlmClient.cs
- CardSpaceException.cs
- StatusBar.cs
- WizardPanel.cs
- FieldAccessException.cs
- COAUTHINFO.cs
- ListMarkerSourceInfo.cs
- EndPoint.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- X509Chain.cs
- SafeNativeMethodsMilCoreApi.cs
- TreeWalkHelper.cs
- Lookup.cs
- DispatcherHooks.cs
- CellParagraph.cs