Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Host / ExceptionCollection.cs / 1 / ExceptionCollection.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.ComponentModel.Design {
using System;
using System.Collections;
using System.Runtime.Serialization;
using System.Security.Permissions;
[Serializable]
public sealed class ExceptionCollection : Exception {
ArrayList exceptions;
public ExceptionCollection(ArrayList exceptions) {
this.exceptions = exceptions;
}
///
/// Need this constructor since Exception implements ISerializable.
///
private ExceptionCollection(SerializationInfo info, StreamingContext context) : base (info, context) {
exceptions = (ArrayList) info.GetValue("exceptions", typeof(ArrayList));
}
public ArrayList Exceptions {
get {
if (exceptions != null) {
return (ArrayList) exceptions.Clone();
}
return null;
}
}
///
/// Need this since Exception implements ISerializable and we have fields to save out.
///
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public override void GetObjectData(SerializationInfo info, StreamingContext context) {
if (info == null) {
throw new ArgumentNullException("info");
}
info.AddValue("exceptions", exceptions);
base.GetObjectData(info, context);
}
}
}
// 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
- DataListItem.cs
- DockAndAnchorLayout.cs
- KeyedHashAlgorithm.cs
- NullableDecimalAverageAggregationOperator.cs
- DbQueryCommandTree.cs
- Byte.cs
- ResourceExpressionEditor.cs
- DataGridHeaderBorder.cs
- OuterGlowBitmapEffect.cs
- WorkflowMarkupSerializer.cs
- ConcurrentQueue.cs
- RulePatternOps.cs
- DrawingContextFlattener.cs
- DataMemberConverter.cs
- BitmapImage.cs
- ParallelRangeManager.cs
- DataFormat.cs
- SimplePropertyEntry.cs
- SecurityIdentifierElementCollection.cs
- WeakReadOnlyCollection.cs
- XmlSchemaGroupRef.cs
- SqlSelectStatement.cs
- JsonSerializer.cs
- BreakRecordTable.cs
- CachedTypeface.cs
- PeerPresenceInfo.cs
- BinaryReader.cs
- Timer.cs
- XmlSchemaCollection.cs
- StorageInfo.cs
- MediaPlayer.cs
- JpegBitmapEncoder.cs
- WorkflowRuntimeService.cs
- ContextMenuStrip.cs
- RequestCachingSection.cs
- Instrumentation.cs
- HttpPostedFile.cs
- SegmentInfo.cs
- ObservableCollection.cs
- LoadGrammarCompletedEventArgs.cs
- CreatingCookieEventArgs.cs
- Schema.cs
- SafeRightsManagementPubHandle.cs
- DetailsViewModeEventArgs.cs
- DeclarativeExpressionConditionDeclaration.cs
- RootBrowserWindowProxy.cs
- IdentityVerifier.cs
- MenuDesigner.cs
- CommandPlan.cs
- DSASignatureFormatter.cs
- X509InitiatorCertificateClientElement.cs
- StyleBamlTreeBuilder.cs
- NamespaceList.cs
- CompressionTracing.cs
- SafeBitVector32.cs
- Helpers.cs
- WebSysDescriptionAttribute.cs
- BigIntegerStorage.cs
- StrokeCollectionDefaultValueFactory.cs
- SessionPageStateSection.cs
- EdmToObjectNamespaceMap.cs
- PersianCalendar.cs
- AddInController.cs
- RegexStringValidatorAttribute.cs
- EventArgs.cs
- CapabilitiesAssignment.cs
- AndCondition.cs
- CursorConverter.cs
- ContractListAdapter.cs
- ExternalDataExchangeService.cs
- WindowsSlider.cs
- LockRecursionException.cs
- ViewBase.cs
- ELinqQueryState.cs
- ActionMessageFilterTable.cs
- XmlAutoDetectWriter.cs
- SafeNativeMethods.cs
- GroupDescription.cs
- WinFormsUtils.cs
- DoubleCollectionConverter.cs
- TagPrefixCollection.cs
- CustomWebEventKey.cs
- FormsAuthenticationModule.cs
- SvcMapFileSerializer.cs
- DoubleLink.cs
- CodeCatchClauseCollection.cs
- TextParagraphCache.cs
- SafeFileHandle.cs
- XmlIncludeAttribute.cs
- ValueTable.cs
- Bits.cs
- CursorEditor.cs
- BindingEntityInfo.cs
- DatagridviewDisplayedBandsData.cs
- HashStream.cs
- CollectionType.cs
- NumberFunctions.cs
- CipherData.cs
- HandleRef.cs
- ButtonBaseAdapter.cs