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
- PrintPreviewGraphics.cs
- EdmConstants.cs
- DiscardableAttribute.cs
- RoleBoolean.cs
- TrustSection.cs
- PersonalizableAttribute.cs
- StylusLogic.cs
- DataControlExtensions.cs
- ResourceDictionaryCollection.cs
- ToolStripGrip.cs
- HttpWebResponse.cs
- PointHitTestParameters.cs
- EncodingConverter.cs
- ReadOnlyActivityGlyph.cs
- UpdateTracker.cs
- StoreItemCollection.cs
- TableAdapterManagerNameHandler.cs
- HttpResponseWrapper.cs
- StringHelper.cs
- BinaryFormatterWriter.cs
- NegotiationTokenProvider.cs
- Int64.cs
- TableItemProviderWrapper.cs
- BamlMapTable.cs
- Window.cs
- GridViewSelectEventArgs.cs
- XamlStream.cs
- EntityCommandCompilationException.cs
- DBCommand.cs
- SBCSCodePageEncoding.cs
- SystemColors.cs
- EntityProviderServices.cs
- ImageMap.cs
- OracleTransaction.cs
- MonitoringDescriptionAttribute.cs
- OutputScope.cs
- CommandHelpers.cs
- DataSourceControl.cs
- CommandHelper.cs
- SplitterPanel.cs
- BuildManager.cs
- XmlWrappingReader.cs
- ConfigurationUtility.cs
- HttpModuleCollection.cs
- PageTrueTypeFont.cs
- VerticalAlignConverter.cs
- ZoneButton.cs
- IIS7WorkerRequest.cs
- invalidudtexception.cs
- InkCanvasFeedbackAdorner.cs
- GZipStream.cs
- Propagator.JoinPropagator.cs
- Expression.cs
- Pointer.cs
- TriggerActionCollection.cs
- SessionPageStateSection.cs
- AccessKeyManager.cs
- ConnectionOrientedTransportChannelListener.cs
- Vector3DValueSerializer.cs
- SqlDataRecord.cs
- Highlights.cs
- ReadOnlyCollectionBuilder.cs
- ManagedIStream.cs
- TemplateAction.cs
- ListViewGroupCollectionEditor.cs
- TableCell.cs
- WebScriptServiceHost.cs
- DataGridViewCellStateChangedEventArgs.cs
- AudioFormatConverter.cs
- ConfigXmlCDataSection.cs
- Clipboard.cs
- LineBreakRecord.cs
- WorkflowTraceTransfer.cs
- ActivationServices.cs
- IndexedWhereQueryOperator.cs
- TypeElement.cs
- ImageSourceValueSerializer.cs
- ValueProviderWrapper.cs
- DataIdProcessor.cs
- UInt64.cs
- Parameter.cs
- AutomationFocusChangedEventArgs.cs
- hwndwrapper.cs
- TextElementCollection.cs
- HGlobalSafeHandle.cs
- ProjectionAnalyzer.cs
- IgnoreFileBuildProvider.cs
- SecurityRuntime.cs
- TreeNodeStyleCollectionEditor.cs
- ToolStripOverflowButton.cs
- NotificationContext.cs
- InputProcessorProfiles.cs
- HttpCapabilitiesEvaluator.cs
- SqlHelper.cs
- AspProxy.cs
- SizeAnimationClockResource.cs
- RemoteWebConfigurationHostStream.cs
- WebWorkflowRole.cs
- safex509handles.cs
- IsolationInterop.cs