Code:
/ DotNET / DotNET / 8.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
- TypeHelper.cs
- ImageMap.cs
- ValueChangedEventManager.cs
- XmlNodeChangedEventArgs.cs
- HttpRawResponse.cs
- KeyboardEventArgs.cs
- ISAPIWorkerRequest.cs
- ConnectionConsumerAttribute.cs
- StateChangeEvent.cs
- SerialPinChanges.cs
- SelectionUIHandler.cs
- OdbcFactory.cs
- ConfigurationManager.cs
- WSSecureConversationFeb2005.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XamlVector3DCollectionSerializer.cs
- HMACSHA256.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SizeLimitedCache.cs
- FieldToken.cs
- XmlSchemaSimpleContentRestriction.cs
- RegexCharClass.cs
- TargetConverter.cs
- XhtmlTextWriter.cs
- SaveWorkflowAsyncResult.cs
- ControlDesignerState.cs
- QilParameter.cs
- SqlNodeAnnotations.cs
- SetState.cs
- TextDecoration.cs
- QilReference.cs
- XmlCharCheckingReader.cs
- UnmanagedMarshal.cs
- MatrixCamera.cs
- FilteredAttributeCollection.cs
- BlurEffect.cs
- ExtentKey.cs
- ClientSponsor.cs
- TableRow.cs
- XmlQueryCardinality.cs
- Light.cs
- DataTrigger.cs
- ResetableIterator.cs
- sqlpipe.cs
- AmbientLight.cs
- WebScriptEndpoint.cs
- PropertyDescriptorGridEntry.cs
- HandlerBase.cs
- SmiRecordBuffer.cs
- Helper.cs
- HttpWebResponse.cs
- coordinatorfactory.cs
- Mappings.cs
- DataGridViewCheckBoxCell.cs
- HebrewCalendar.cs
- DynamicResourceExtensionConverter.cs
- PointAnimationUsingKeyFrames.cs
- AutomationTextAttribute.cs
- DataGridViewAccessibleObject.cs
- HtmlMeta.cs
- Stylesheet.cs
- ProcessInputEventArgs.cs
- FilterException.cs
- RectIndependentAnimationStorage.cs
- CopyCodeAction.cs
- FormsAuthenticationUserCollection.cs
- HttpRawResponse.cs
- SecurityTokenResolver.cs
- SourceInterpreter.cs
- StreamGeometryContext.cs
- XmlDocumentSerializer.cs
- CodeThrowExceptionStatement.cs
- BindingManagerDataErrorEventArgs.cs
- TCPClient.cs
- TextProperties.cs
- NameService.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- UpdateExpressionVisitor.cs
- _Rfc2616CacheValidators.cs
- UnsupportedPolicyOptionsException.cs
- XmlNamespaceDeclarationsAttribute.cs
- ColorDialog.cs
- MetadataExchangeBindings.cs
- GeometryCombineModeValidation.cs
- RoleGroup.cs
- WmlImageAdapter.cs
- SecurityContext.cs
- CopyCodeAction.cs
- ControlSerializer.cs
- SafeLocalAllocation.cs
- UriTemplateMatch.cs
- FormatConvertedBitmap.cs
- LockedAssemblyCache.cs
- Int32.cs
- WebPartRestoreVerb.cs
- HandledEventArgs.cs
- GridViewActionList.cs
- EnumerableRowCollection.cs
- GenericPrincipal.cs
- Win32.cs