Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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)); } } } // 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
- COM2ComponentEditor.cs
- GroupedContextMenuStrip.cs
- ITreeGenerator.cs
- DbProviderFactories.cs
- SafeFileMappingHandle.cs
- SimpleBitVector32.cs
- SqlUserDefinedAggregateAttribute.cs
- SessionMode.cs
- ConstructorNeedsTagAttribute.cs
- StylusCollection.cs
- ValueTypeFixupInfo.cs
- TagPrefixAttribute.cs
- precedingquery.cs
- PropertySourceInfo.cs
- AuthenticationService.cs
- StateManagedCollection.cs
- SendKeys.cs
- BrowsableAttribute.cs
- DeploymentSection.cs
- RectangleGeometry.cs
- DefaultBindingPropertyAttribute.cs
- _SafeNetHandles.cs
- Application.cs
- IntSecurity.cs
- TextTreeDeleteContentUndoUnit.cs
- LayoutEngine.cs
- SqlAliaser.cs
- Control.cs
- TraceUtility.cs
- SMSvcHost.cs
- AttributeSetAction.cs
- ExpressionList.cs
- RtType.cs
- Stream.cs
- SingleConverter.cs
- BooleanAnimationUsingKeyFrames.cs
- HttpErrorTraceRecord.cs
- ValidationErrorEventArgs.cs
- XmlWrappingReader.cs
- MSAAEventDispatcher.cs
- XmlSerializerAssemblyAttribute.cs
- CompareValidator.cs
- SelectionRange.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Visual3DCollection.cs
- NullableDoubleAverageAggregationOperator.cs
- TransformProviderWrapper.cs
- SHA1Managed.cs
- ObjectListField.cs
- FixedLineResult.cs
- IgnoreDeviceFilterElementCollection.cs
- CodeDelegateCreateExpression.cs
- String.cs
- NonSerializedAttribute.cs
- CurrencyWrapper.cs
- RegexWorker.cs
- HashCodeCombiner.cs
- Decorator.cs
- CodePageUtils.cs
- SqlDependencyListener.cs
- SymbolEqualComparer.cs
- InputElement.cs
- ProcessModelSection.cs
- SqlUdtInfo.cs
- Decimal.cs
- FtpRequestCacheValidator.cs
- BuildProvidersCompiler.cs
- HostedTransportConfigurationManager.cs
- ToolStripContainer.cs
- ScrollableControlDesigner.cs
- DataGridViewRowConverter.cs
- ToolStripSplitStackLayout.cs
- PictureBox.cs
- Matrix3DStack.cs
- DataRelationCollection.cs
- SelectionBorderGlyph.cs
- ObservableDictionary.cs
- UnsafeNativeMethods.cs
- DateTimeFormat.cs
- WmpBitmapEncoder.cs
- StructuralType.cs
- ObjectDataSourceFilteringEventArgs.cs
- Msmq.cs
- CommittableTransaction.cs
- SyntaxCheck.cs
- Pick.cs
- SimpleRecyclingCache.cs
- ReplacementText.cs
- DataGridViewCheckBoxColumn.cs
- BidPrivateBase.cs
- PackWebRequestFactory.cs
- GeometryDrawing.cs
- SingleResultAttribute.cs
- HandlerBase.cs
- XmlNamespaceManager.cs
- Point3DCollection.cs
- URLAttribute.cs
- GridViewDesigner.cs
- SQLDateTimeStorage.cs
- FixedSOMGroup.cs