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
- LinkButton.cs
- ValidatedMobileControlConverter.cs
- WorkerRequest.cs
- WebEventCodes.cs
- HostingEnvironment.cs
- DisplayInformation.cs
- TextElementEnumerator.cs
- CatalogPartCollection.cs
- ApplicationActivator.cs
- WSSecurityJan2004.cs
- SecurityRequiresReviewAttribute.cs
- EntityWithKeyStrategy.cs
- MeasureData.cs
- NativeCppClassAttribute.cs
- XamlSerializerUtil.cs
- _KerberosClient.cs
- _HelperAsyncResults.cs
- DataServiceProcessingPipeline.cs
- MenuAutomationPeer.cs
- DynamicPropertyHolder.cs
- PeerCollaboration.cs
- SqlParameterizer.cs
- RightNameExpirationInfoPair.cs
- ConfigPathUtility.cs
- StorageConditionPropertyMapping.cs
- MSG.cs
- PingOptions.cs
- ButtonBaseAdapter.cs
- C14NUtil.cs
- EditableLabelControl.cs
- SecurityUtils.cs
- ListView.cs
- MemberInfoSerializationHolder.cs
- TextBounds.cs
- BufferBuilder.cs
- WebBrowsableAttribute.cs
- DoubleCollection.cs
- SignatureResourcePool.cs
- DragCompletedEventArgs.cs
- ImplicitInputBrush.cs
- DbConnectionPoolOptions.cs
- XmlDocumentFragment.cs
- AutoResizedEvent.cs
- QueryCacheManager.cs
- SignedPkcs7.cs
- RecognizerStateChangedEventArgs.cs
- ScopeCompiler.cs
- Menu.cs
- StreamResourceInfo.cs
- FileDataSourceCache.cs
- HostingMessageProperty.cs
- LayoutTable.cs
- XNodeSchemaApplier.cs
- IDReferencePropertyAttribute.cs
- WebEventCodes.cs
- Deserializer.cs
- PrintPreviewGraphics.cs
- DataComponentNameHandler.cs
- ParseHttpDate.cs
- FacetDescriptionElement.cs
- XmlStringTable.cs
- ResourceDisplayNameAttribute.cs
- PeerCollaboration.cs
- AccessorTable.cs
- AsymmetricSecurityProtocolFactory.cs
- SqlColumnizer.cs
- ScriptReferenceBase.cs
- TraceContext.cs
- COM2ExtendedTypeConverter.cs
- VirtualizedCellInfoCollection.cs
- SingleConverter.cs
- RequestBringIntoViewEventArgs.cs
- Point3DCollection.cs
- FontStyleConverter.cs
- TextCompositionEventArgs.cs
- ScaleTransform3D.cs
- RegexBoyerMoore.cs
- GraphicsContainer.cs
- LayoutEditorPart.cs
- ShutDownListener.cs
- TableLayoutPanel.cs
- TextCompositionManager.cs
- ErrorHandlerModule.cs
- LocationUpdates.cs
- XmlSchemaGroup.cs
- LocatorManager.cs
- UIInitializationException.cs
- XPathDocument.cs
- GestureRecognitionResult.cs
- Pen.cs
- StringReader.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- StrokeNode.cs
- SqlSelectClauseBuilder.cs
- MergeFilterQuery.cs
- RestHandlerFactory.cs
- CheckBox.cs
- Point.cs
- Single.cs
- Size3DValueSerializer.cs