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
- HScrollBar.cs
- TrustLevelCollection.cs
- SafeMemoryMappedFileHandle.cs
- DoubleLinkListEnumerator.cs
- lengthconverter.cs
- DataComponentMethodGenerator.cs
- DbDataAdapter.cs
- LayoutTableCell.cs
- MethodInfo.cs
- XmlArrayItemAttribute.cs
- ProxyGenerator.cs
- DetailsViewInsertEventArgs.cs
- _SafeNetHandles.cs
- RemoteHelper.cs
- FontStretch.cs
- WebServiceMethodData.cs
- ColorContext.cs
- IndicShape.cs
- IdentityModelStringsVersion1.cs
- WizardSideBarListControlItem.cs
- COM2PropertyPageUITypeConverter.cs
- PersonalizationProviderHelper.cs
- StyleReferenceConverter.cs
- DocumentViewerBaseAutomationPeer.cs
- SafePEFileHandle.cs
- Claim.cs
- FlowDocumentFormatter.cs
- FileChangesMonitor.cs
- VectorCollectionConverter.cs
- DataServiceBehavior.cs
- Expander.cs
- SoapReflectionImporter.cs
- StackOverflowException.cs
- LocatorPart.cs
- DateTimeUtil.cs
- OutputWindow.cs
- AuthenticodeSignatureInformation.cs
- SocketStream.cs
- Vector3DAnimationUsingKeyFrames.cs
- MessageDecoder.cs
- TextSelectionProcessor.cs
- ObjectViewEntityCollectionData.cs
- TableRowGroup.cs
- CryptoHelper.cs
- ReferenceAssemblyAttribute.cs
- Effect.cs
- DockPatternIdentifiers.cs
- WindowsIPAddress.cs
- TableCellCollection.cs
- MenuScrollingVisibilityConverter.cs
- DbConnectionPoolGroupProviderInfo.cs
- XPathDocument.cs
- RouteItem.cs
- ResourcePermissionBase.cs
- FileUtil.cs
- Queue.cs
- WindowsSecurityTokenAuthenticator.cs
- StringStorage.cs
- ExpressionLexer.cs
- InputScopeAttribute.cs
- SessionPageStatePersister.cs
- TemplatePropertyEntry.cs
- MetabaseServerConfig.cs
- CodeRegionDirective.cs
- ConfigsHelper.cs
- AdapterSwitches.cs
- RangeValuePattern.cs
- RuntimeResourceSet.cs
- SegmentInfo.cs
- Sequence.cs
- RtType.cs
- ValidatedControlConverter.cs
- ChannelSinkStacks.cs
- ReadOnlyHierarchicalDataSource.cs
- SpellerInterop.cs
- MsmqIntegrationSecurity.cs
- TemplateBamlRecordReader.cs
- MeasurementDCInfo.cs
- StringDictionaryEditor.cs
- LifetimeServices.cs
- CompilerResults.cs
- NavigatorInput.cs
- CompositionAdorner.cs
- SqlTypeSystemProvider.cs
- BufferAllocator.cs
- TabletDevice.cs
- Pkcs7Recipient.cs
- ImplicitInputBrush.cs
- TextViewElement.cs
- GeometryCollection.cs
- __Error.cs
- Padding.cs
- CounterSampleCalculator.cs
- AppliedDeviceFiltersEditor.cs
- XmlValidatingReaderImpl.cs
- X509CertificateEndpointIdentity.cs
- TreeNodeStyleCollectionEditor.cs
- SurrogateEncoder.cs
- PixelShader.cs
- Events.cs