Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EditorPart.cs
- FieldNameLookup.cs
- ObjectDataSourceDisposingEventArgs.cs
- MaterialGroup.cs
- ReadContentAsBinaryHelper.cs
- XmlSignatureProperties.cs
- ClientProxyGenerator.cs
- CryptoConfig.cs
- BaseAddressElementCollection.cs
- CryptoKeySecurity.cs
- DataGrid.cs
- AssemblyUtil.cs
- ISAPIRuntime.cs
- TextPointer.cs
- PolicyUnit.cs
- CqlIdentifiers.cs
- HelpOperationInvoker.cs
- SolidColorBrush.cs
- Int32RectConverter.cs
- FixedSOMImage.cs
- WrapPanel.cs
- BookmarkOptionsHelper.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- BitmapInitialize.cs
- FamilyTypeface.cs
- SspiSafeHandles.cs
- HostedTransportConfigurationBase.cs
- ContentControl.cs
- TagPrefixAttribute.cs
- SoapSchemaMember.cs
- EntityRecordInfo.cs
- SessionViewState.cs
- XmlSerializationGeneratedCode.cs
- ViewStateModeByIdAttribute.cs
- DebugView.cs
- ErrorWebPart.cs
- ScriptControl.cs
- AdPostCacheSubstitution.cs
- ImportContext.cs
- XmlSchemaSimpleContent.cs
- GridEntryCollection.cs
- SymbolTable.cs
- PreviewPrintController.cs
- SudsWriter.cs
- AssemblyNameProxy.cs
- XmlSchemaGroupRef.cs
- X509CertificateStore.cs
- ObjectDataSourceView.cs
- SecurityContextSecurityToken.cs
- QEncodedStream.cs
- ExpressionBinding.cs
- Tokenizer.cs
- TransformedBitmap.cs
- ExtensibleClassFactory.cs
- Base64Decoder.cs
- MinimizableAttributeTypeConverter.cs
- BamlResourceSerializer.cs
- AccessDataSource.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ProfessionalColorTable.cs
- ValidationErrorCollection.cs
- ZipIORawDataFileBlock.cs
- ParameterCollection.cs
- EventBindingService.cs
- TraceInternal.cs
- BatchStream.cs
- IdnMapping.cs
- HotSpot.cs
- XmlFormatExtensionAttribute.cs
- StylusPointProperty.cs
- SafeMILHandle.cs
- DataControlFieldCell.cs
- ListView.cs
- EmptyEnumerator.cs
- BaseCodePageEncoding.cs
- CornerRadius.cs
- BitSet.cs
- ToolStripDropDownClosingEventArgs.cs
- PerfCounters.cs
- Registry.cs
- JsonCollectionDataContract.cs
- FactoryMaker.cs
- WebPartTransformerCollection.cs
- ClrPerspective.cs
- DropDownHolder.cs
- MemberExpressionHelper.cs
- ObjectPropertyMapping.cs
- WebPartMinimizeVerb.cs
- MatrixStack.cs
- ExpressionEvaluator.cs
- ViewGenResults.cs
- PackageFilter.cs
- TraceSection.cs
- ModuleElement.cs
- GroupStyle.cs
- ServiceOperationDetailViewControl.cs
- TargetFrameworkAttribute.cs
- Effect.cs
- StatusBarItem.cs
- AuthenticationModulesSection.cs