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
- Pointer.cs
- DataGridViewRowHeaderCell.cs
- AuthenticationModulesSection.cs
- MSAAEventDispatcher.cs
- FilePrompt.cs
- ChtmlLinkAdapter.cs
- BitmapData.cs
- StorageMappingItemCollection.cs
- HttpCookieCollection.cs
- OpenFileDialog.cs
- HostProtectionException.cs
- BinaryObjectReader.cs
- InstancePersistenceContext.cs
- ListControlBoundActionList.cs
- XmlRawWriterWrapper.cs
- StatusBarItemAutomationPeer.cs
- BuiltInExpr.cs
- MethodBuilder.cs
- ParentQuery.cs
- SessionStateModule.cs
- ToolboxBitmapAttribute.cs
- XmlSerializer.cs
- SubqueryRules.cs
- XmlSchemaComplexContentExtension.cs
- WebScriptServiceHostFactory.cs
- AssociationTypeEmitter.cs
- SelectionEditingBehavior.cs
- ToolStripGrip.cs
- WebPartConnectionsDisconnectVerb.cs
- WebZone.cs
- RegistrationServices.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TargetException.cs
- RealizationDrawingContextWalker.cs
- ClipboardProcessor.cs
- SqlDataSourceCommandEventArgs.cs
- TakeQueryOptionExpression.cs
- QuotedPrintableStream.cs
- StreamSecurityUpgradeInitiator.cs
- SafeNativeMethodsCLR.cs
- RelatedPropertyManager.cs
- SimpleType.cs
- UnsafeNativeMethods.cs
- FileLogRecord.cs
- Int32RectValueSerializer.cs
- SupportsEventValidationAttribute.cs
- Trace.cs
- ProviderSettings.cs
- HwndAppCommandInputProvider.cs
- IssuedTokenParametersEndpointAddressElement.cs
- WindowsAuthenticationModule.cs
- EditorZone.cs
- ParameterBuilder.cs
- SurrogateDataContract.cs
- ClientBuildManagerCallback.cs
- PageStatePersister.cs
- XmlDataSourceNodeDescriptor.cs
- IxmlLineInfo.cs
- ElementNotEnabledException.cs
- DSASignatureDeformatter.cs
- ToolStripControlHost.cs
- AttachedPropertyBrowsableAttribute.cs
- PolicyValidator.cs
- ApplicationTrust.cs
- ToolStripOverflow.cs
- _Semaphore.cs
- UriTemplateTable.cs
- Membership.cs
- MailBnfHelper.cs
- DesignerGenericWebPart.cs
- WebPartEditVerb.cs
- SeekableReadStream.cs
- CollectionView.cs
- WorkflowView.cs
- NamedPipeTransportBindingElement.cs
- PasswordTextNavigator.cs
- EntityClassGenerator.cs
- ComboBoxDesigner.cs
- TitleStyle.cs
- UserPreference.cs
- WindowsFormsSynchronizationContext.cs
- AnimationClockResource.cs
- WebPartDisplayModeCollection.cs
- XmlWhitespace.cs
- EmptyImpersonationContext.cs
- Config.cs
- WebServiceEnumData.cs
- ObjectDataSourceFilteringEventArgs.cs
- SimpleHandlerFactory.cs
- EdgeModeValidation.cs
- QuaternionRotation3D.cs
- TokenizerHelper.cs
- Base64Decoder.cs
- TypeListConverter.cs
- ObjectTokenCategory.cs
- FixUp.cs
- Msec.cs
- StreamWriter.cs
- DataGridViewAddColumnDialog.cs
- OleDbPermission.cs