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
- SizeChangedInfo.cs
- EpmCustomContentDeSerializer.cs
- SspiSecurityTokenProvider.cs
- UnitySerializationHolder.cs
- DocumentScope.cs
- IndexedEnumerable.cs
- TransformerConfigurationWizardBase.cs
- BamlLocalizer.cs
- WebPartAddingEventArgs.cs
- Form.cs
- PolyBezierSegmentFigureLogic.cs
- TrustVersion.cs
- Compiler.cs
- CompositeCollection.cs
- ApplySecurityAndSendAsyncResult.cs
- WSFederationHttpSecurityElement.cs
- DbParameterCollectionHelper.cs
- CacheChildrenQuery.cs
- EdmConstants.cs
- TagMapInfo.cs
- COM2EnumConverter.cs
- SmiXetterAccessMap.cs
- WorkflowInstanceRecord.cs
- PrivilegedConfigurationManager.cs
- MessageEncodingBindingElement.cs
- ApplicationActivator.cs
- FamilyMap.cs
- XmlNode.cs
- SafePointer.cs
- UnsafeNativeMethodsPenimc.cs
- RtfNavigator.cs
- SerializationSectionGroup.cs
- KeyedHashAlgorithm.cs
- HttpFormatExtensions.cs
- HttpProfileGroupBase.cs
- SEHException.cs
- KnownBoxes.cs
- CryptoHandle.cs
- DataGridViewCellStyleConverter.cs
- PartBasedPackageProperties.cs
- BoundField.cs
- WindowCollection.cs
- FontEmbeddingManager.cs
- Convert.cs
- DataSourceXmlTextReader.cs
- ButtonBaseAdapter.cs
- SimpleWorkerRequest.cs
- XsdDateTime.cs
- StringUtil.cs
- SQLDecimalStorage.cs
- DefaultEvaluationContext.cs
- HTTPNotFoundHandler.cs
- InvokeHandlers.cs
- ZipPackagePart.cs
- ServiceSecurityAuditElement.cs
- SQLRoleProvider.cs
- ExpandableObjectConverter.cs
- DescendantBaseQuery.cs
- TrackingLocationCollection.cs
- GuidelineCollection.cs
- ManagementQuery.cs
- BrowsableAttribute.cs
- ExpressionBuilder.cs
- Calendar.cs
- ColorTranslator.cs
- XmlSchemaSimpleType.cs
- DesignerGenericWebPart.cs
- MessageDirection.cs
- UntrustedRecipientException.cs
- VisualBrush.cs
- COM2ColorConverter.cs
- DbParameterCollectionHelper.cs
- OleTxTransaction.cs
- QueryCacheManager.cs
- KeyGestureConverter.cs
- DeviceContext2.cs
- Adorner.cs
- MonthChangedEventArgs.cs
- InheritanceRules.cs
- PrimaryKeyTypeConverter.cs
- Signature.cs
- NativeMethods.cs
- GuidTagList.cs
- XPathArrayIterator.cs
- GridItemProviderWrapper.cs
- Rotation3DAnimationUsingKeyFrames.cs
- Array.cs
- RangeEnumerable.cs
- RelationshipWrapper.cs
- HtmlTableRow.cs
- DbProviderConfigurationHandler.cs
- WebRequestModuleElementCollection.cs
- ResourcePermissionBaseEntry.cs
- MenuCommand.cs
- basecomparevalidator.cs
- ModelPropertyDescriptor.cs
- FindProgressChangedEventArgs.cs
- PartialClassGenerationTask.cs
- NativeMethods.cs
- RectValueSerializer.cs