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
- HtmlLink.cs
- TreeNodeBindingCollection.cs
- ReferenceEqualityComparer.cs
- ObjectAssociationEndMapping.cs
- ReachSerializableProperties.cs
- AttributeXamlType.cs
- XmlAttributeCollection.cs
- ComponentChangingEvent.cs
- FixedSOMElement.cs
- SchemaMerger.cs
- NumericUpDownAcceleration.cs
- ScriptingWebServicesSectionGroup.cs
- EventQueueState.cs
- TextParaLineResult.cs
- DataServiceRequestOfT.cs
- AccessDataSourceView.cs
- ObjectCloneHelper.cs
- UIElement.cs
- OracleDateTime.cs
- XmlSerializationGeneratedCode.cs
- Monitor.cs
- PermissionSetTriple.cs
- NamespaceExpr.cs
- EdmProperty.cs
- WorkflowTraceTransfer.cs
- SelectionWordBreaker.cs
- Invariant.cs
- ValidatorCollection.cs
- WebServiceClientProxyGenerator.cs
- IsolatedStoragePermission.cs
- DataGridViewControlCollection.cs
- TableItemProviderWrapper.cs
- EventItfInfo.cs
- SpecularMaterial.cs
- SafeViewOfFileHandle.cs
- GraphicsPathIterator.cs
- TextEditorTables.cs
- MultiBindingExpression.cs
- GridLength.cs
- DataColumnPropertyDescriptor.cs
- AddInDeploymentState.cs
- HwndStylusInputProvider.cs
- Win32PrintDialog.cs
- ConfigPathUtility.cs
- TranslateTransform3D.cs
- serverconfig.cs
- IisTraceWebEventProvider.cs
- FixedSOMFixedBlock.cs
- DecimalAnimationBase.cs
- WindowsScroll.cs
- XmlCodeExporter.cs
- UnorderedHashRepartitionStream.cs
- CompilationRelaxations.cs
- CacheHelper.cs
- DefaultEvaluationContext.cs
- odbcmetadatafactory.cs
- DependencyPropertyValueSerializer.cs
- FileVersionInfo.cs
- Brushes.cs
- DataGridViewCellStateChangedEventArgs.cs
- Rect3DConverter.cs
- Exceptions.cs
- SafeRegistryHandle.cs
- DecoderFallbackWithFailureFlag.cs
- DbParameterHelper.cs
- PrintDialog.cs
- EncodingDataItem.cs
- DictionaryCustomTypeDescriptor.cs
- versioninfo.cs
- ComplexTypeEmitter.cs
- XamlToRtfParser.cs
- rsa.cs
- EntityCollection.cs
- XamlTreeBuilderBamlRecordWriter.cs
- CodeExporter.cs
- QueryPageSettingsEventArgs.cs
- ReferencedCollectionType.cs
- FlowDocumentView.cs
- DataGridTableCollection.cs
- HiddenField.cs
- TypeUtils.cs
- DefaultValueAttribute.cs
- DataGridCaption.cs
- XPathAncestorIterator.cs
- WebRequestModulesSection.cs
- JsonUriDataContract.cs
- DataColumnMappingCollection.cs
- ISFClipboardData.cs
- Configuration.cs
- ByteStack.cs
- UmAlQuraCalendar.cs
- ToolStripItemTextRenderEventArgs.cs
- UrlRoutingModule.cs
- CodeVariableDeclarationStatement.cs
- ContentPlaceHolder.cs
- KeySpline.cs
- MissingMemberException.cs
- ArraySortHelper.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ObjectReaderCompiler.cs