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
- PlanCompiler.cs
- XmlEntity.cs
- BasicCellRelation.cs
- HtmlInputPassword.cs
- glyphs.cs
- ApplicationGesture.cs
- InternalMappingException.cs
- CompositeDataBoundControl.cs
- LabelLiteral.cs
- SymmetricKeyWrap.cs
- XmlSchemaException.cs
- LongSumAggregationOperator.cs
- TextFragmentEngine.cs
- AnimationClock.cs
- DataSourceXmlElementAttribute.cs
- ResXResourceSet.cs
- UpdateTracker.cs
- CheckBoxFlatAdapter.cs
- CryptoStream.cs
- XPathNode.cs
- SynchronizingStream.cs
- ObjectStateManagerMetadata.cs
- XmlSchemaIdentityConstraint.cs
- ADConnectionHelper.cs
- CustomAttributeBuilder.cs
- HealthMonitoringSectionHelper.cs
- AnnotationResourceChangedEventArgs.cs
- Encoding.cs
- DataGridViewCellFormattingEventArgs.cs
- HijriCalendar.cs
- ScrollItemPattern.cs
- UserNameSecurityToken.cs
- PathSegment.cs
- PolyQuadraticBezierSegment.cs
- AVElementHelper.cs
- ConfigurationLocation.cs
- DetailsViewDeletedEventArgs.cs
- ColorConverter.cs
- XmlReflectionImporter.cs
- GridViewCancelEditEventArgs.cs
- MultilineStringConverter.cs
- Propagator.cs
- Executor.cs
- FilteredDataSetHelper.cs
- QuaternionAnimationBase.cs
- ProcessStartInfo.cs
- XPathDocumentIterator.cs
- HtmlTextArea.cs
- NeutralResourcesLanguageAttribute.cs
- TransactionState.cs
- FixedTextSelectionProcessor.cs
- PrintPreviewGraphics.cs
- WizardDesigner.cs
- ConfigurationElementProperty.cs
- PersonalizableAttribute.cs
- MDIWindowDialog.cs
- ListView.cs
- PageTheme.cs
- XmlArrayItemAttributes.cs
- EventHandlersDesigner.cs
- XsltLoader.cs
- NumericExpr.cs
- IsolatedStorage.cs
- UnaryExpression.cs
- XmlQuerySequence.cs
- InvalidCommandTreeException.cs
- AnnotationAuthorChangedEventArgs.cs
- PostBackTrigger.cs
- CodeObject.cs
- SR.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Timer.cs
- DBCommand.cs
- ZipArchive.cs
- sortedlist.cs
- BamlLocalizationDictionary.cs
- ConfigXmlSignificantWhitespace.cs
- FlatButtonAppearance.cs
- DependencyPropertyKind.cs
- FileDialogPermission.cs
- MailWriter.cs
- IndexedString.cs
- GetImportFileNameRequest.cs
- TabControl.cs
- MatrixConverter.cs
- AssemblyAttributesGoHere.cs
- LicenseManager.cs
- ContainerUtilities.cs
- ListViewSelectEventArgs.cs
- SystemIPInterfaceProperties.cs
- DisplayNameAttribute.cs
- TextEffect.cs
- Variable.cs
- columnmapkeybuilder.cs
- JsonDeserializer.cs
- InvalidDataException.cs
- InputReferenceExpression.cs
- AutoGeneratedField.cs
- StateFinalizationDesigner.cs
- EmptyEnumerable.cs