Code:
/ FX-1434 / FX-1434 / 1.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
- UICuesEvent.cs
- DrawingImage.cs
- ArglessEventHandlerProxy.cs
- UIAgentAsyncParams.cs
- HttpWebRequest.cs
- ConfigurationLocationCollection.cs
- ExtendedProtectionPolicy.cs
- BuildProviderAppliesToAttribute.cs
- ReadOnlyAttribute.cs
- ResourceExpressionBuilder.cs
- RuntimeHandles.cs
- OrderPreservingSpoolingTask.cs
- DataGridCellItemAutomationPeer.cs
- ToolStripRendererSwitcher.cs
- FactoryGenerator.cs
- XmlDataSourceDesigner.cs
- CacheEntry.cs
- ObjectDataSourceFilteringEventArgs.cs
- AudioBase.cs
- InputLanguageCollection.cs
- FilteredAttributeCollection.cs
- EnumerableRowCollectionExtensions.cs
- WebServiceMethodData.cs
- _SpnDictionary.cs
- QueryExtender.cs
- SQLSingle.cs
- PropertyChangedEventArgs.cs
- TransactionFlowAttribute.cs
- PatternMatcher.cs
- BitmapDecoder.cs
- Rotation3DAnimation.cs
- HtmlButton.cs
- XmlQueryRuntime.cs
- HttpClientCertificate.cs
- LogicalTreeHelper.cs
- RevocationPoint.cs
- _SslState.cs
- StandardToolWindows.cs
- CodeDomLocalizationProvider.cs
- Query.cs
- Stylus.cs
- RepeaterItemEventArgs.cs
- BaseServiceProvider.cs
- SiteMapDataSource.cs
- DLinqAssociationProvider.cs
- WebResourceAttribute.cs
- PackageStore.cs
- CheckBoxBaseAdapter.cs
- BindingMemberInfo.cs
- ConfigXmlElement.cs
- InvalidFilterCriteriaException.cs
- HTTPNotFoundHandler.cs
- ToolStripRenderer.cs
- ComponentConverter.cs
- DtdParser.cs
- InternalBase.cs
- OutArgumentConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- PassportPrincipal.cs
- EntityClientCacheKey.cs
- AppDomainManager.cs
- DataSet.cs
- RegisterResponseInfo.cs
- TypeGeneratedEventArgs.cs
- GC.cs
- EntityRecordInfo.cs
- CharacterMetrics.cs
- ClassImporter.cs
- XPathPatternParser.cs
- CustomErrorCollection.cs
- TextEditorLists.cs
- arclist.cs
- BamlCollectionHolder.cs
- TypeUnloadedException.cs
- LockCookie.cs
- HierarchicalDataBoundControl.cs
- AppearanceEditorPart.cs
- HuffModule.cs
- _ConnectStream.cs
- StateChangeEvent.cs
- TextEditorCopyPaste.cs
- mediaeventshelper.cs
- ToolStripStatusLabel.cs
- Renderer.cs
- DaylightTime.cs
- DataGridViewRowStateChangedEventArgs.cs
- WindowInteractionStateTracker.cs
- GradientBrush.cs
- ComPlusTypeValidator.cs
- XsltQilFactory.cs
- CodeExpressionStatement.cs
- Crypto.cs
- MethodResolver.cs
- ExpressionsCollectionEditor.cs
- StructuredType.cs
- ObjectViewFactory.cs
- FastEncoderWindow.cs
- WebScriptClientGenerator.cs
- InputMethod.cs
- UrlMappingsSection.cs