Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImageFormat.cs
- HttpsChannelListener.cs
- baseshape.cs
- XmlRootAttribute.cs
- BrowserCapabilitiesFactoryBase.cs
- ByteStreamGeometryContext.cs
- ExecutedRoutedEventArgs.cs
- SafeProcessHandle.cs
- ProfileService.cs
- LongValidator.cs
- RijndaelManaged.cs
- UTF7Encoding.cs
- PathTooLongException.cs
- CuspData.cs
- EventSetter.cs
- WebPartEditorCancelVerb.cs
- ShadowGlyph.cs
- UITypeEditor.cs
- ScrollPattern.cs
- RuleInfoComparer.cs
- ResXResourceReader.cs
- documentation.cs
- AuthorizationSection.cs
- ImageMetadata.cs
- TypeForwardedToAttribute.cs
- TempFiles.cs
- AsyncPostBackTrigger.cs
- basevalidator.cs
- DataRecord.cs
- EditorPart.cs
- RenderingEventArgs.cs
- ActiveDesignSurfaceEvent.cs
- Camera.cs
- ExceptionUtil.cs
- cookieexception.cs
- AvtEvent.cs
- EntityDesignerBuildProvider.cs
- UITypeEditor.cs
- MetabaseServerConfig.cs
- SendMessageChannelCache.cs
- IconBitmapDecoder.cs
- XsltContext.cs
- AsyncResult.cs
- LeaseManager.cs
- HMAC.cs
- ThreadAbortException.cs
- Version.cs
- SystemResourceHost.cs
- MappingItemCollection.cs
- OneOf.cs
- FontFamily.cs
- MenuCommandService.cs
- QilLoop.cs
- DbMetaDataColumnNames.cs
- ImageAnimator.cs
- basevalidator.cs
- SqlDataSourceCache.cs
- WindowsFormsHelpers.cs
- ExpressionVisitor.cs
- RolePrincipal.cs
- SqlCacheDependencyDatabaseCollection.cs
- xdrvalidator.cs
- storagemappingitemcollection.viewdictionary.cs
- FederatedMessageSecurityOverHttpElement.cs
- JsonUriDataContract.cs
- XmlQuerySequence.cs
- DispatcherSynchronizationContext.cs
- AmbiguousMatchException.cs
- WorkflowDebuggerSteppingAttribute.cs
- RoutedEventHandlerInfo.cs
- BitmapSourceSafeMILHandle.cs
- StylusPointProperty.cs
- SQLSingleStorage.cs
- MimeMapping.cs
- ControlParameter.cs
- _OverlappedAsyncResult.cs
- ParseChildrenAsPropertiesAttribute.cs
- ClientApiGenerator.cs
- ApplicationId.cs
- ErrorStyle.cs
- Int64.cs
- AppDomainFactory.cs
- InstanceCollisionException.cs
- EntityKey.cs
- WeakHashtable.cs
- SafeFileMappingHandle.cs
- EncryptedPackage.cs
- FileFormatException.cs
- WaitForChangedResult.cs
- TextReader.cs
- PageBuildProvider.cs
- TextMetrics.cs
- BamlLocalizableResourceKey.cs
- UrlParameterWriter.cs
- TablePattern.cs
- TemplateBindingExpression.cs
- Triangle.cs
- InProcStateClientManager.cs
- URI.cs
- StringPropertyBuilder.cs