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
- CompositeDispatchFormatter.cs
- TextShapeableCharacters.cs
- SqlBulkCopy.cs
- ProxyHwnd.cs
- SiteMapPath.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- StringConverter.cs
- StringStorage.cs
- MessageBodyDescription.cs
- SetIterators.cs
- _CommandStream.cs
- SchemaInfo.cs
- XmlAtomicValue.cs
- XmlSchemaSimpleTypeList.cs
- CompositeScriptReferenceEventArgs.cs
- StreamWriter.cs
- ColorConverter.cs
- CompiledIdentityConstraint.cs
- ExceptionUtil.cs
- _HeaderInfoTable.cs
- PackWebRequestFactory.cs
- ThicknessAnimationUsingKeyFrames.cs
- WebZone.cs
- ForeignKeyConstraint.cs
- TypeConverterAttribute.cs
- InputMethodStateChangeEventArgs.cs
- WinInetCache.cs
- HttpServerUtilityWrapper.cs
- EditorZoneBase.cs
- RequestBringIntoViewEventArgs.cs
- CollectionViewSource.cs
- dataprotectionpermissionattribute.cs
- IsolatedStorage.cs
- IdentityValidationException.cs
- EntityDataSourceDesignerHelper.cs
- EntityClientCacheKey.cs
- StopStoryboard.cs
- Vector3DValueSerializer.cs
- BaseAsyncResult.cs
- SiteIdentityPermission.cs
- SoapAttributeAttribute.cs
- TextSelectionProcessor.cs
- BufferModeSettings.cs
- Substitution.cs
- EraserBehavior.cs
- ControlIdConverter.cs
- ConnectionManagementSection.cs
- FileSystemEventArgs.cs
- TemplateControlCodeDomTreeGenerator.cs
- Range.cs
- ToolStripDropDownButton.cs
- ResourceContainer.cs
- xmlglyphRunInfo.cs
- OlePropertyStructs.cs
- OutputCacheEntry.cs
- UidPropertyAttribute.cs
- NullableConverter.cs
- TextPointerBase.cs
- ProcessingInstructionAction.cs
- AssociationSet.cs
- TextModifierScope.cs
- ProcessModelInfo.cs
- CqlParser.cs
- EmptyCollection.cs
- Soap.cs
- ConditionalDesigner.cs
- PriorityBinding.cs
- LinkArea.cs
- DataGridTableCollection.cs
- ResourceDescriptionAttribute.cs
- TypeElement.cs
- Point3DAnimationBase.cs
- WsatAdminException.cs
- Int32EqualityComparer.cs
- WhitespaceRuleReader.cs
- HttpHandlerAction.cs
- GACMembershipCondition.cs
- EnvelopedSignatureTransform.cs
- TextParagraphView.cs
- AnonymousIdentificationModule.cs
- ProcessModelInfo.cs
- BindingManagerDataErrorEventArgs.cs
- SafeNativeMethods.cs
- TreeViewAutomationPeer.cs
- StrongName.cs
- ListViewInsertionMark.cs
- PathGradientBrush.cs
- DataGridColumn.cs
- StrongNameUtility.cs
- StickyNoteAnnotations.cs
- DataGridTextBox.cs
- TextTreeTextElementNode.cs
- WebBrowsableAttribute.cs
- GetLastErrorDetailsRequest.cs
- AdornedElementPlaceholder.cs
- SqlMetaData.cs
- WorkflowViewManager.cs
- UTF8Encoding.cs
- Debug.cs
- RectangleHotSpot.cs