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
- BulletedList.cs
- NativeObjectSecurity.cs
- ColorConvertedBitmapExtension.cs
- LinearKeyFrames.cs
- ReferenceConverter.cs
- BinHexEncoding.cs
- HttpContext.cs
- SelectionPattern.cs
- ExtensionDataObject.cs
- ChtmlTextWriter.cs
- NamespaceList.cs
- HtmlControl.cs
- FormViewModeEventArgs.cs
- HyperLink.cs
- UriTemplateClientFormatter.cs
- ReachUIElementCollectionSerializer.cs
- FileDialog_Vista_Interop.cs
- SatelliteContractVersionAttribute.cs
- XmlSchemaObjectTable.cs
- TransformProviderWrapper.cs
- ContextMarshalException.cs
- IgnorePropertiesAttribute.cs
- WebPageTraceListener.cs
- Model3D.cs
- Events.cs
- ToolStripItemTextRenderEventArgs.cs
- Clipboard.cs
- FileClassifier.cs
- NetDataContractSerializer.cs
- RemotingConfiguration.cs
- LongMinMaxAggregationOperator.cs
- ColumnMapVisitor.cs
- XmlAggregates.cs
- HMACSHA256.cs
- SqlUdtInfo.cs
- MailFileEditor.cs
- TextEditorCharacters.cs
- TextBlock.cs
- ThicknessAnimation.cs
- ReflectPropertyDescriptor.cs
- DbDataReader.cs
- HttpServerVarsCollection.cs
- SelectedGridItemChangedEvent.cs
- FormsAuthenticationUser.cs
- IxmlLineInfo.cs
- DataViewSetting.cs
- ScaleTransform3D.cs
- ThreadExceptionDialog.cs
- PassportAuthenticationEventArgs.cs
- ELinqQueryState.cs
- RtfToken.cs
- GroupJoinQueryOperator.cs
- CapabilitiesRule.cs
- TraceHandlerErrorFormatter.cs
- PagedControl.cs
- querybuilder.cs
- LiteralText.cs
- TrustLevelCollection.cs
- DesignerDataSchemaClass.cs
- ReadContentAsBinaryHelper.cs
- HttpException.cs
- DataSourceControl.cs
- WrapPanel.cs
- Int32RectValueSerializer.cs
- SafeLocalMemHandle.cs
- AccessControlEntry.cs
- RequestContext.cs
- GradientStop.cs
- XamlFigureLengthSerializer.cs
- PbrsForward.cs
- CodeDirectionExpression.cs
- GridEntry.cs
- IQueryable.cs
- DataGridPageChangedEventArgs.cs
- SHA512.cs
- autovalidator.cs
- XamlToRtfParser.cs
- MsmqInputSessionChannelListener.cs
- MissingMethodException.cs
- QilCloneVisitor.cs
- ZoneMembershipCondition.cs
- ContextStack.cs
- SizeConverter.cs
- RtfFormatStack.cs
- ArgIterator.cs
- XmlJsonReader.cs
- ReflectEventDescriptor.cs
- KeyConverter.cs
- entitydatasourceentitysetnameconverter.cs
- EncodingFallbackAwareXmlTextWriter.cs
- DataGridViewRowStateChangedEventArgs.cs
- ComponentManagerBroker.cs
- WaitForChangedResult.cs
- TypeListConverter.cs
- ToolStripActionList.cs
- TreeNodeSelectionProcessor.cs
- TextBreakpoint.cs
- FixedMaxHeap.cs
- PageContentCollection.cs
- InputLanguageCollection.cs