Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== /*============================================================================== ** ** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AvTraceFormat.cs
- RecordConverter.cs
- ExecutionContext.cs
- ObjectDataSourceStatusEventArgs.cs
- ReaderWriterLockSlim.cs
- ListViewGroupConverter.cs
- EventProxy.cs
- DiagnosticsConfigurationHandler.cs
- DbCommandDefinition.cs
- PeekCompletedEventArgs.cs
- MulticastDelegate.cs
- FormViewDeleteEventArgs.cs
- Duration.cs
- Button.cs
- SparseMemoryStream.cs
- SrgsDocumentParser.cs
- UriSection.cs
- Peer.cs
- DeflateStream.cs
- precedingsibling.cs
- OdbcParameter.cs
- ScopelessEnumAttribute.cs
- ReadWriteSpinLock.cs
- StorageScalarPropertyMapping.cs
- InvalidFilterCriteriaException.cs
- PageCache.cs
- SafeLibraryHandle.cs
- HTMLTextWriter.cs
- TreeViewAutomationPeer.cs
- smtpconnection.cs
- SignatureDescription.cs
- EntryWrittenEventArgs.cs
- CurrentTimeZone.cs
- OracleParameterBinding.cs
- DummyDataSource.cs
- ApplicationId.cs
- MultiBindingExpression.cs
- LogSwitch.cs
- DbConnectionPool.cs
- Compress.cs
- Assembly.cs
- AspNetSynchronizationContext.cs
- DatagridviewDisplayedBandsData.cs
- Attribute.cs
- CodeArrayCreateExpression.cs
- GeometryConverter.cs
- CodeLinePragma.cs
- Trace.cs
- RuntimeResourceSet.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- arc.cs
- MethodCallTranslator.cs
- TextBoxAutomationPeer.cs
- ChangeProcessor.cs
- IteratorDescriptor.cs
- CodeLinePragma.cs
- ElementHostPropertyMap.cs
- SelectionUIService.cs
- HttpValueCollection.cs
- UIElement.cs
- InvalidOperationException.cs
- SoapReflectionImporter.cs
- InvokeWebService.cs
- EventMetadata.cs
- IdleTimeoutMonitor.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- LogSwitch.cs
- CryptoKeySecurity.cs
- LostFocusEventManager.cs
- TypefaceMap.cs
- ExceptionUtil.cs
- TableRow.cs
- FormatVersion.cs
- Thread.cs
- CryptoHandle.cs
- Message.cs
- View.cs
- BaseProcessProtocolHandler.cs
- ComponentConverter.cs
- NotifyParentPropertyAttribute.cs
- ProcessRequestAsyncResult.cs
- HotSpot.cs
- Convert.cs
- MessageEnumerator.cs
- DocumentViewerAutomationPeer.cs
- WebPartVerbsEventArgs.cs
- ResourceWriter.cs
- ComponentTray.cs
- XmlSerializationGeneratedCode.cs
- InvokeProviderWrapper.cs
- TraceXPathNavigator.cs
- DataObjectMethodAttribute.cs
- XmlEntityReference.cs
- TreeIterators.cs
- SafeBitVector32.cs
- StylusPlugin.cs
- CompilerGlobalScopeAttribute.cs
- XmlConverter.cs
- InkCanvasAutomationPeer.cs
- Monitor.cs