Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / CompilerServices / RuntimeWrappedException.cs / 1 / RuntimeWrappedException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: RuntimeWrappedException ** ** ** Purpose: The exception class uses to wrap all non-CLS compliant exceptions. ** ** =============================================================================*/ namespace System.Runtime.CompilerServices { using System; using System.Runtime.Serialization; using System.Runtime.Remoting; using System.Security.Permissions; [Serializable()] public sealed class RuntimeWrappedException : Exception { private RuntimeWrappedException(Object thrownObject) : base(Environment.GetResourceString("RuntimeWrappedException")) { SetErrorCode(System.__HResults.COR_E_RUNTIMEWRAPPED); m_wrappedException = thrownObject; } public Object WrappedException { get { return m_wrappedException; } } private Object m_wrappedException; [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info==null) { throw new ArgumentNullException("info"); } base.GetObjectData(info, context); info.AddValue("WrappedException", m_wrappedException, typeof(Object)); } internal RuntimeWrappedException(SerializationInfo info, StreamingContext context) : base(info, context) { m_wrappedException = info.GetValue("WrappedException", typeof(Object)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Part.cs
- Debugger.cs
- BorderSidesEditor.cs
- ConfigurationStrings.cs
- Converter.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ProgressBar.cs
- regiisutil.cs
- AttributeCollection.cs
- GrammarBuilderWildcard.cs
- ServerProtocol.cs
- TypeUsageBuilder.cs
- IPEndPointCollection.cs
- SrgsRuleRef.cs
- OperationAbortedException.cs
- SettingsPropertyWrongTypeException.cs
- AnimatedTypeHelpers.cs
- UpdateManifestForBrowserApplication.cs
- PolicyValidationException.cs
- NotifyCollectionChangedEventArgs.cs
- TextSpanModifier.cs
- SqlCacheDependency.cs
- XD.cs
- XmlName.cs
- CheckBox.cs
- CodePageEncoding.cs
- DataGridViewColumnCollectionEditor.cs
- PropertyBuilder.cs
- DetailsViewPageEventArgs.cs
- OraclePermission.cs
- WebControl.cs
- GridErrorDlg.cs
- SimplePropertyEntry.cs
- initElementDictionary.cs
- IssuerInformation.cs
- Ipv6Element.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ISCIIEncoding.cs
- StrongNameIdentityPermission.cs
- SqlStatistics.cs
- TextEditorTables.cs
- AnnotationComponentChooser.cs
- EntryPointNotFoundException.cs
- TransformCollection.cs
- PrePrepareMethodAttribute.cs
- MatrixKeyFrameCollection.cs
- EventArgs.cs
- EmbeddedMailObjectsCollection.cs
- SqlRecordBuffer.cs
- DigestTraceRecordHelper.cs
- DecoderReplacementFallback.cs
- Positioning.cs
- Image.cs
- SqlServices.cs
- LayoutEngine.cs
- Animatable.cs
- UpdateManifestForBrowserApplication.cs
- precedingquery.cs
- NativeMethods.cs
- TriggerBase.cs
- RtfFormatStack.cs
- AttributeCollection.cs
- SystemWebCachingSectionGroup.cs
- VirtualPathProvider.cs
- PeoplePickerWrapper.cs
- NGCSerializationManager.cs
- TextTabProperties.cs
- ToolStripDropDownClosingEventArgs.cs
- PropertyPath.cs
- RootBrowserWindow.cs
- StrongNameKeyPair.cs
- TreeViewImageIndexConverter.cs
- PaperSource.cs
- DataGridViewToolTip.cs
- NamespaceInfo.cs
- VirtualPath.cs
- DataGridViewElement.cs
- HijriCalendar.cs
- SqlConnectionString.cs
- ScriptModule.cs
- ReadOnlyAttribute.cs
- SqlTriggerContext.cs
- ActivityStatusChangeEventArgs.cs
- DesignUtil.cs
- TextRangeAdaptor.cs
- HwndSourceKeyboardInputSite.cs
- SchemaMapping.cs
- WriteFileContext.cs
- UnauthorizedAccessException.cs
- HitTestWithPointDrawingContextWalker.cs
- DependencyPropertyAttribute.cs
- FixedPage.cs
- LightweightCodeGenerator.cs
- TransportBindingElement.cs
- ResourcesBuildProvider.cs
- HMACSHA384.cs
- SiteMapDataSource.cs
- SafeLibraryHandle.cs
- PersonalizablePropertyEntry.cs
- InputProcessorProfiles.cs