Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // // ==--== /*============================================================================== ** ** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaAnyAttribute.cs
- Point4DConverter.cs
- InkPresenterAutomationPeer.cs
- SqlProviderUtilities.cs
- SafeNativeMethodsOther.cs
- KeyBinding.cs
- RedistVersionInfo.cs
- ListViewAutomationPeer.cs
- SoapElementAttribute.cs
- SchemaTypeEmitter.cs
- CodeMethodReturnStatement.cs
- HostingEnvironmentException.cs
- StreamAsIStream.cs
- StringKeyFrameCollection.cs
- CheckBoxBaseAdapter.cs
- OutputCacheProfileCollection.cs
- WebPartConnectVerb.cs
- GenerateScriptTypeAttribute.cs
- PromptStyle.cs
- SHA256Managed.cs
- DBAsyncResult.cs
- BackgroundFormatInfo.cs
- ContextInformation.cs
- RegularExpressionValidator.cs
- WrappedIUnknown.cs
- FocusChangedEventArgs.cs
- PersonalizationAdministration.cs
- ReturnValue.cs
- CounterCreationData.cs
- XmlSubtreeReader.cs
- ThousandthOfEmRealPoints.cs
- CheckBox.cs
- TdsParameterSetter.cs
- DataGridViewCell.cs
- ResourceContainer.cs
- TextRange.cs
- HttpListenerRequestUriBuilder.cs
- UrlMappingCollection.cs
- TrackingAnnotationCollection.cs
- Bold.cs
- ThicknessKeyFrameCollection.cs
- QueryableDataSourceHelper.cs
- CodeRemoveEventStatement.cs
- ServiceNameCollection.cs
- ServerValidateEventArgs.cs
- SettingsAttributeDictionary.cs
- AsymmetricSecurityProtocol.cs
- StylusPointCollection.cs
- WebPartTransformerAttribute.cs
- AnalyzedTree.cs
- ProgressBarRenderer.cs
- BinaryFormatterWriter.cs
- TextElementEditingBehaviorAttribute.cs
- BitmapEffectGroup.cs
- CloudCollection.cs
- FrameworkElementAutomationPeer.cs
- UIElement.cs
- FixedSOMTable.cs
- SqlDataSourceView.cs
- ListViewAutomationPeer.cs
- RectAnimationUsingKeyFrames.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- BuildManagerHost.cs
- BookmarkScopeHandle.cs
- StylusDevice.cs
- EndpointDiscoveryMetadata.cs
- mongolianshape.cs
- EventDescriptor.cs
- DependencyObjectProvider.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- ToolZone.cs
- TiffBitmapDecoder.cs
- StaticFileHandler.cs
- ToolStripLocationCancelEventArgs.cs
- FontWeights.cs
- ConfigurationLocationCollection.cs
- ObjectDesignerDataSourceView.cs
- DispatcherObject.cs
- xmlsaver.cs
- PhoneCallDesigner.cs
- StreamProxy.cs
- BufferedGraphics.cs
- Size3DConverter.cs
- EntityDataSourceDataSelection.cs
- ReferentialConstraintRoleElement.cs
- WhileDesigner.cs
- OleAutBinder.cs
- wgx_render.cs
- X509SecurityTokenAuthenticator.cs
- HyperLinkColumn.cs
- _UriTypeConverter.cs
- DataGridTemplateColumn.cs
- MetadataArtifactLoaderCompositeFile.cs
- MissingFieldException.cs
- MouseGesture.cs
- ContentTypeSettingClientMessageFormatter.cs
- XpsSerializationManagerAsync.cs
- StateDesigner.TransitionInfo.cs
- DataPagerCommandEventArgs.cs
- DrawItemEvent.cs