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
- MLangCodePageEncoding.cs
- CompoundFileReference.cs
- BinaryQueryOperator.cs
- Model3DCollection.cs
- AspNetHostingPermission.cs
- WindowProviderWrapper.cs
- clipboard.cs
- CancelEventArgs.cs
- TextRunCacheImp.cs
- WebDisplayNameAttribute.cs
- DataGrid.cs
- ApplicationContext.cs
- NativeMethods.cs
- StateManagedCollection.cs
- PropVariant.cs
- EntityStoreSchemaFilterEntry.cs
- ErrorView.xaml.cs
- TheQuery.cs
- MenuScrollingVisibilityConverter.cs
- PrePostDescendentsWalker.cs
- RegexCapture.cs
- CodeDirectiveCollection.cs
- CatalogZone.cs
- Int16KeyFrameCollection.cs
- CheckBoxAutomationPeer.cs
- RecognizedAudio.cs
- followingsibling.cs
- BitArray.cs
- OrderedDictionaryStateHelper.cs
- ACL.cs
- Encoder.cs
- HttpListenerException.cs
- Vector3DConverter.cs
- ResourceContainer.cs
- CodePropertyReferenceExpression.cs
- MembershipUser.cs
- FunctionNode.cs
- ImpersonateTokenRef.cs
- InputLanguage.cs
- DataGridPageChangedEventArgs.cs
- XPathBuilder.cs
- DesignerFrame.cs
- OracleConnection.cs
- ListViewTableRow.cs
- MediaElementAutomationPeer.cs
- SimpleFieldTemplateUserControl.cs
- x509utils.cs
- KnownIds.cs
- ComboBoxAutomationPeer.cs
- RuleSettingsCollection.cs
- MouseEventArgs.cs
- Button.cs
- RowType.cs
- RemotingConfigParser.cs
- ADMembershipProvider.cs
- VisemeEventArgs.cs
- InheritanceService.cs
- SystemIcmpV4Statistics.cs
- DetailsViewRowCollection.cs
- ProviderConnectionPoint.cs
- SqlClientWrapperSmiStreamChars.cs
- ConfigXmlComment.cs
- Registry.cs
- Bezier.cs
- HandlerFactoryWrapper.cs
- RequestSecurityTokenResponse.cs
- InsufficientExecutionStackException.cs
- PassportAuthenticationEventArgs.cs
- DesignerWidgets.cs
- HostingPreferredMapPath.cs
- ScriptControlManager.cs
- File.cs
- XsltContext.cs
- ColumnCollection.cs
- EncodingDataItem.cs
- MediaContext.cs
- XmlElementAttribute.cs
- NumericExpr.cs
- TabletDeviceInfo.cs
- SqlConnectionStringBuilder.cs
- FileDataSourceCache.cs
- ToolStripSeparator.cs
- XDRSchema.cs
- RowBinding.cs
- OLEDB_Util.cs
- BufferBuilder.cs
- HighContrastHelper.cs
- WindowsPrincipal.cs
- DataViewSettingCollection.cs
- ProfileService.cs
- ServiceContractViewControl.Designer.cs
- StylusPointProperties.cs
- ListChunk.cs
- MyContact.cs
- DbSourceParameterCollection.cs
- StreamUpgradeInitiator.cs
- DesignerCapabilities.cs
- XamlStream.cs
- TreeView.cs
- PerspectiveCamera.cs