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
- TickBar.cs
- EventHandlerService.cs
- DockPattern.cs
- UIHelper.cs
- SqlServices.cs
- XsdDuration.cs
- OdbcEnvironment.cs
- ComponentEvent.cs
- LabelAutomationPeer.cs
- FileAuthorizationModule.cs
- ELinqQueryState.cs
- BindingFormattingDialog.cs
- CalendarKeyboardHelper.cs
- MessagePropertyAttribute.cs
- PhysicalFontFamily.cs
- HashSetEqualityComparer.cs
- ExpressionPrinter.cs
- CompilationLock.cs
- EventMemberCodeDomSerializer.cs
- XslTransform.cs
- CallbackHandler.cs
- BitmapEffectInput.cs
- SqlCaseSimplifier.cs
- QueryPageSettingsEventArgs.cs
- CommandValueSerializer.cs
- DeferredElementTreeState.cs
- Solver.cs
- SignedInfo.cs
- SqlDataSourceSelectingEventArgs.cs
- ConfigurationSectionCollection.cs
- DataGridViewLayoutData.cs
- PropertyGridView.cs
- RepeaterDataBoundAdapter.cs
- ExceptionUtility.cs
- DesignerSerializationOptionsAttribute.cs
- TemplateControlParser.cs
- UnionCodeGroup.cs
- SchemaMapping.cs
- TextEditorCharacters.cs
- FontCacheUtil.cs
- ObjectDataProvider.cs
- DefaultTraceListener.cs
- EditorZoneBase.cs
- DBCSCodePageEncoding.cs
- TypeInfo.cs
- SystemWebCachingSectionGroup.cs
- ConcurrentBag.cs
- BinHexDecoder.cs
- ObjectStateManager.cs
- PropertyCollection.cs
- StyleCollection.cs
- AutomationPropertyInfo.cs
- _LocalDataStoreMgr.cs
- SrgsRulesCollection.cs
- AssemblyAttributesGoHere.cs
- XmlSchemaGroupRef.cs
- OutputCacheSettingsSection.cs
- GridItem.cs
- coordinatorscratchpad.cs
- RangeValueProviderWrapper.cs
- _LazyAsyncResult.cs
- TextSerializer.cs
- EngineSite.cs
- IPEndPoint.cs
- PropertyKey.cs
- BufferModesCollection.cs
- PropertyFilterAttribute.cs
- StyleCollection.cs
- SizeChangedEventArgs.cs
- WinFormsSecurity.cs
- OutputScopeManager.cs
- RemoteWebConfigurationHostServer.cs
- DecoderFallback.cs
- LicenseException.cs
- XmlDigitalSignatureProcessor.cs
- CorrelationRequestContext.cs
- EventLogEntryCollection.cs
- EntityProviderServices.cs
- WebMessageBodyStyleHelper.cs
- WizardStepBase.cs
- ClientScriptManager.cs
- SqlServer2KCompatibilityAnnotation.cs
- Label.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- PageThemeCodeDomTreeGenerator.cs
- ExpressionNormalizer.cs
- GeneralTransform3DTo2D.cs
- MediaEntryAttribute.cs
- WebPartTransformer.cs
- XmlUtil.cs
- Point3DAnimation.cs
- ObjectParameterCollection.cs
- KeyMatchBuilder.cs
- SymbolEqualComparer.cs
- XmlSchemaParticle.cs
- SingleObjectCollection.cs
- JumpTask.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- FixedTextPointer.cs