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
- DocumentViewerConstants.cs
- GetMemberBinder.cs
- XmlArrayAttribute.cs
- WriteFileContext.cs
- EndEvent.cs
- unitconverter.cs
- BuildProvider.cs
- BaseTemplateParser.cs
- PreloadedPackages.cs
- DoubleAnimation.cs
- Solver.cs
- Int64AnimationUsingKeyFrames.cs
- BindingsSection.cs
- _DisconnectOverlappedAsyncResult.cs
- VariableQuery.cs
- AutomationPropertyInfo.cs
- mediaclock.cs
- KerberosSecurityTokenProvider.cs
- messageonlyhwndwrapper.cs
- XPathDocumentIterator.cs
- ProtocolsSection.cs
- XmlWriter.cs
- SpecularMaterial.cs
- ClientFactory.cs
- DbConnectionHelper.cs
- RadioButtonAutomationPeer.cs
- ButtonChrome.cs
- CodeGotoStatement.cs
- DBBindings.cs
- shaper.cs
- SharedHttpTransportManager.cs
- RequestCacheValidator.cs
- SystemUnicastIPAddressInformation.cs
- InternalResources.cs
- IgnoreDataMemberAttribute.cs
- XmlAttribute.cs
- DataMisalignedException.cs
- NameValueCollection.cs
- Hashtable.cs
- ElementHost.cs
- EditorReuseAttribute.cs
- SafeBitVector32.cs
- NameHandler.cs
- PeerCollaborationPermission.cs
- Operator.cs
- DuplexChannelBinder.cs
- SqlProfileProvider.cs
- TrackingServices.cs
- RecipientIdentity.cs
- EllipseGeometry.cs
- PropertyRecord.cs
- NetworkInformationException.cs
- LicenseProviderAttribute.cs
- SQLDouble.cs
- ServicePoint.cs
- RequiredFieldValidator.cs
- CanonicalFontFamilyReference.cs
- InkCanvas.cs
- FormsIdentity.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- UInt32Converter.cs
- ElementNotEnabledException.cs
- UrlMappingsModule.cs
- arclist.cs
- WebPartConnectionsConnectVerb.cs
- Errors.cs
- HttpCacheVary.cs
- ZoomingMessageFilter.cs
- TimerElapsedEvenArgs.cs
- StringArrayEditor.cs
- ImageList.cs
- DispatcherExceptionFilterEventArgs.cs
- ToolStripSeparatorRenderEventArgs.cs
- IsolatedStorageFilePermission.cs
- TemplateControlParser.cs
- EntityCollectionChangedParams.cs
- MatrixKeyFrameCollection.cs
- DnsPermission.cs
- TraceEventCache.cs
- sitestring.cs
- SiteMapHierarchicalDataSourceView.cs
- BindingExpressionBase.cs
- Rules.cs
- AbstractExpressions.cs
- DataFormats.cs
- DecimalAnimation.cs
- SqlDataSourceStatusEventArgs.cs
- DrawItemEvent.cs
- XmlNodeChangedEventArgs.cs
- QuaternionIndependentAnimationStorage.cs
- AppSecurityManager.cs
- FormViewModeEventArgs.cs
- Wrapper.cs
- PingOptions.cs
- FileDialog.cs
- PropVariant.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ErrorTableItemStyle.cs
- HtmlHistory.cs
- DmlSqlGenerator.cs