Code:
/ DotNET / DotNET / 8.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
- EnumType.cs
- EmptyEnumerator.cs
- LinqDataSourceStatusEventArgs.cs
- Validator.cs
- BindingNavigator.cs
- InstanceData.cs
- ConfigXmlCDataSection.cs
- XmlSchemaComplexContentExtension.cs
- PasswordTextNavigator.cs
- HtmlToClrEventProxy.cs
- InternalRelationshipCollection.cs
- AsyncPostBackTrigger.cs
- ComMethodElementCollection.cs
- RijndaelManagedTransform.cs
- CssTextWriter.cs
- StringUtil.cs
- PartitionResolver.cs
- TextShapeableCharacters.cs
- documentation.cs
- Convert.cs
- MergeEnumerator.cs
- PriorityRange.cs
- SqlServices.cs
- Timer.cs
- ServiceMemoryGates.cs
- Section.cs
- NullableConverter.cs
- SlipBehavior.cs
- IdentitySection.cs
- UnitySerializationHolder.cs
- EdmComplexTypeAttribute.cs
- ArcSegment.cs
- LiteralTextContainerControlBuilder.cs
- SecurityUtils.cs
- CodeTypeConstructor.cs
- WebServiceTypeData.cs
- ToolStripEditorManager.cs
- Animatable.cs
- BlurBitmapEffect.cs
- Int32Collection.cs
- RuleSetDialog.Designer.cs
- DllNotFoundException.cs
- ProxyHwnd.cs
- FormViewRow.cs
- PageAction.cs
- XmlSchemaObjectCollection.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ProxyHwnd.cs
- storagemappingitemcollection.viewdictionary.cs
- TextAnchor.cs
- MsmqNonTransactedPoisonHandler.cs
- URLMembershipCondition.cs
- PrimitiveType.cs
- Binding.cs
- AttachedAnnotation.cs
- EntityConnectionStringBuilder.cs
- ViewManagerAttribute.cs
- ObjectTypeMapping.cs
- RangeValidator.cs
- DownloadProgressEventArgs.cs
- PartialTrustValidationBehavior.cs
- SqlHelper.cs
- SqlGatherProducedAliases.cs
- EntityReference.cs
- X509CertificateRecipientClientCredential.cs
- TreeViewHitTestInfo.cs
- StateFinalizationDesigner.cs
- UnmanagedMemoryStream.cs
- _IPv4Address.cs
- SamlAssertion.cs
- TraceSource.cs
- UnsafeNativeMethods.cs
- FillBehavior.cs
- DataServiceStreamResponse.cs
- ContentElementAutomationPeer.cs
- SoapMessage.cs
- BeginGetFileNameFromUserRequest.cs
- filewebrequest.cs
- OutputCacheSettingsSection.cs
- WebFaultException.cs
- MediaContext.cs
- UnauthorizedAccessException.cs
- TransformPattern.cs
- RectKeyFrameCollection.cs
- EditorZoneBase.cs
- DataControlPagerLinkButton.cs
- ResourcesBuildProvider.cs
- PropertyNames.cs
- ListViewHitTestInfo.cs
- QilInvokeEarlyBound.cs
- QilGenerator.cs
- DocumentViewerHelper.cs
- LogEntryHeaderSerializer.cs
- VisualProxy.cs
- HtmlSelect.cs
- UnsafeNativeMethods.cs
- CodeTypeDeclaration.cs
- WebPartDisplayMode.cs
- KeysConverter.cs
- MaterializeFromAtom.cs